about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-02-27 21:56:15 +0100
committerGitHub <noreply@github.com>2021-02-27 21:56:15 +0100
commitbe3d1eb3010b48f5b0512fc83cc029bb321fb3ab (patch)
tree6260c72ef61516da8803cb6ca2d1cc56aa34856d /src/test/debuginfo/enum-thinlto.rs
parent94736c434ee154b30e2ec22ec112b79e3f6c5884 (diff)
parented8c68644c9a352f61c3b4591b6fc18653e2ffc2 (diff)
downloadrust-be3d1eb3010b48f5b0512fc83cc029bb321fb3ab.tar.gz
rust-be3d1eb3010b48f5b0512fc83cc029bb321fb3ab.zip
Rollup merge of #81856 - Smittyvb:utf16-warn, r=matthewjasper
Suggest character encoding is incorrect when encountering random null bytes

This adds a note whenever null bytes are seen at the start of a token unexpectedly, since those tend to come from UTF-16 encoded files without a [BOM](https://en.wikipedia.org/wiki/Byte_order_mark) (if a UTF-16 BOM appears it won't be valid UTF-8, but if there is no BOM it be both valid UTF-16 and valid but garbled UTF-8). This approach was suggested in https://github.com/rust-lang/rust/issues/73979#issuecomment-653976451.

Closes #73979.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions