Skip to content

Commit 6e59c64

Browse files
committed
Revert change
1 parent a4ff1dc commit 6e59c64

File tree

1 file changed

+2
-3
lines changed
  • src/libsyntax/parse/lexer

1 file changed

+2
-3
lines changed

src/libsyntax/parse/lexer/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1456,9 +1456,8 @@ impl<'a> StringReader<'a> {
14561456
}
14571457
}
14581458

1459-
self.err_span_(start_with_quote, pos,
1460-
"character literal may only contain one codepoint");
1461-
self.bump();
1459+
self.fatal_span_verbose(start_with_quote, pos,
1460+
String::from("character literal may only contain one codepoint")).raise();
14621461
}
14631462

14641463
let id = if valid {

0 commit comments

Comments
 (0)