We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 686d27c commit 899720fCopy full SHA for 899720f
src/libsyntax/parse/lexer/mod.rs
@@ -1,6 +1,6 @@
1
use crate::ast::{self, Ident};
2
use crate::parse::{token, ParseSess};
3
-use crate::symbol::Symbol;
+use crate::symbol::{Symbol, sym};
4
use crate::parse::unescape;
5
use crate::parse::unescape_error_reporting::{emit_unescape_error, push_escaped_char};
6
@@ -753,7 +753,7 @@ impl<'a> StringReader<'a> {
753
}
754
_ => {
755
// just a 0
756
- return token::Integer(self.name_from(start_bpos));
+ return token::Integer(sym::n0);
757
758
759
} else if c.is_digit(10) {
src/libsyntax_pos/symbol.rs
@@ -372,6 +372,7 @@ symbols! {
372
more_struct_aliases,
373
movbe_target_feature,
374
must_use,
375
+ n0: "0",
376
naked,
377
naked_functions,
378
name,
0 commit comments