We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9bb3fb commit c6cb014Copy full SHA for c6cb014
compiler/rustc_parse/src/lexer/mod.rs
@@ -269,7 +269,7 @@ impl<'a> StringReader<'a> {
269
// as there will be less overall work to do this way.
270
let token = unicode_chars::check_for_substitution(self, start, c, &mut err);
271
if c == '\x00' {
272
- err.help("source files must be encoded in UTF-8, unexpected null bytes might occur when the wrong text encoding is used");
+ err.help("source files must contain UTF-8 encoded text, unexpected null bytes might occur when a different encoding is used");
273
}
274
err.emit();
275
token?
0 commit comments