diff options
author | Smitty <me@smitop.com> | 2021-02-07 11:02:53 -0500 |
---|---|---|
committer | Smitty <me@smitop.com> | 2021-02-07 11:02:53 -0500 |
commit | c6cb014ad650f7b46c357d40f469c116cc752575 (patch) | |
tree | 1a55ef89621f4d92b10484634c705a98948acd87 /compiler/rustc_parse/src/lexer/mod.rs | |
parent | a9bb3fbd86c89ac85d4cc21ae4f17e1001825aba (diff) | |
download | rust-c6cb014ad650f7b46c357d40f469c116cc752575.tar.gz |
Clarify error message wording
Diffstat (limited to 'compiler/rustc_parse/src/lexer/mod.rs')
-rw-r--r-- | compiler/rustc_parse/src/lexer/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/lexer/mod.rs b/compiler/rustc_parse/src/lexer/mod.rs index bb63dbd5303..4bf870eb7ce 100644 --- a/compiler/rustc_parse/src/lexer/mod.rs +++ b/compiler/rustc_parse/src/lexer/mod.rs @@ -269,7 +269,7 @@ impl<'a> StringReader<'a> { // as there will be less overall work to do this way. let token = unicode_chars::check_for_substitution(self, start, c, &mut err); if c == '\x00' { - 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"); } err.emit(); token? |