diff options
| author | Ryan Levick <me@ryanlevick.com> | 2021-06-30 15:56:50 +0200 |
|---|---|---|
| committer | Ryan Levick <me@ryanlevick.com> | 2021-07-06 20:13:16 +0200 |
| commit | 81c11a212eda360ee3808dacf8065685f4a2e07b (patch) | |
| tree | 45c84e9b1044e99a9fc873aaeb869fcdc4d96f3f /compiler/rustc_parse/src | |
| parent | a902e25f589b929b65bd0b55abdeb2f22796401a (diff) | |
| download | rust-81c11a212eda360ee3808dacf8065685f4a2e07b.tar.gz rust-81c11a212eda360ee3808dacf8065685f4a2e07b.zip | |
rust_2021_token_prefixes
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/lexer/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/lexer/mod.rs b/compiler/rustc_parse/src/lexer/mod.rs index 3f58476296b..73ca9b04b37 100644 --- a/compiler/rustc_parse/src/lexer/mod.rs +++ b/compiler/rustc_parse/src/lexer/mod.rs @@ -4,7 +4,7 @@ use rustc_ast::tokenstream::{Spacing, TokenStream}; use rustc_errors::{error_code, Applicability, DiagnosticBuilder, FatalError, PResult}; use rustc_lexer::unescape::{self, Mode}; use rustc_lexer::{Base, DocStyle, RawStrError}; -use rustc_session::lint::builtin::RESERVED_PREFIXES; +use rustc_session::lint::builtin::RUST_2021_TOKEN_PREFIXES; use rustc_session::lint::BuiltinLintDiagnostics; use rustc_session::parse::ParseSess; use rustc_span::symbol::{sym, Symbol}; @@ -526,7 +526,7 @@ impl<'a> StringReader<'a> { } else { // Before Rust 2021, only emit a lint for migration. self.sess.buffer_lint_with_diagnostic( - &RESERVED_PREFIXES, + &RUST_2021_TOKEN_PREFIXES, prefix_span, ast::CRATE_NODE_ID, &msg, |
