diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-06-23 14:59:42 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-07-07 13:04:07 +0300 |
| commit | b6d522a101982b4c6919391a378e799bd74a4da6 (patch) | |
| tree | 404fe3b4f4c5c2ececec0aee30bffd6296009837 /src/libsyntax/parse | |
| parent | 1ee0ce82cba66305f03725fb73ad381349a9b8e4 (diff) | |
| download | rust-b6d522a101982b4c6919391a378e799bd74a4da6.tar.gz rust-b6d522a101982b4c6919391a378e799bd74a4da6.zip | |
syntax: Pre-intern names of all built-in macros
They always end up interned anyway
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/lexer/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs index 1abbf0ff1ee..d0c4e8d6a56 100644 --- a/src/libsyntax/parse/lexer/mod.rs +++ b/src/libsyntax/parse/lexer/mod.rs @@ -613,7 +613,7 @@ impl<'a> StringReader<'a> { if num_digits == 0 { self.err_span_(start_bpos, self.pos, "no valid digits found for number"); - return (token::Integer, Symbol::intern("0")); + return (token::Integer, sym::integer(0)); } // might be a float, but don't be greedy if this is actually an |
