Skip to content

Commit f278b59

Browse files
LFS6502Noratrieb
andauthored
Remove error line numbers and fix capitalization.
Co-authored-by: nora <[email protected]>
1 parent 4d80eef commit f278b59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_parse/src/lexer/unescape_error_reporting.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ pub(crate) fn emit_unescape_error(
169169
);
170170

171171
diag.help(format!(
172-
"{ec} is not an ascii quote, but may look like one in some fonts; \
172+
"{ec} is not an ASCII quote, but may look like one in some fonts; \
173173
consider writing it in its escaped form for clarity."
174174
));
175175
} else {

tests/ui/unicode-quote.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// <https://github.com/rust-lang/rust/issues/128858>
33
fn main() {
44
dbg!("\″"); //U+2033
5-
//~^ERROR 4:12: 4:13: unknown character escape: `\u{2033}`
5+
//~^ERROR unknown character escape: `\u{2033}`
66
dbg!(""); //U+02BA
77
//~^ERROR 6:12: 6:13: unknown character escape: `\u{2ba}`
88
dbg!(""); //U+02DD

0 commit comments

Comments
 (0)