diff options
| author | Ryan Levick <me@ryanlevick.com> | 2021-07-06 16:33:11 +0200 |
|---|---|---|
| committer | Ryan Levick <me@ryanlevick.com> | 2021-07-06 20:13:36 +0200 |
| commit | d4e384bc1de0c11f3bc6fffc013358de85ad2982 (patch) | |
| tree | 3925fccf8806462d730c486280d5c3145f8645b0 /compiler/rustc_parse/src/lexer/mod.rs | |
| parent | 941eb2adbd10988167e0fe23b87e795203df3977 (diff) | |
| download | rust-d4e384bc1de0c11f3bc6fffc013358de85ad2982.tar.gz rust-d4e384bc1de0c11f3bc6fffc013358de85ad2982.zip | |
rename rust_2021_token_prefixes to rust_2021_prefixes_incompatible_syntax
Diffstat (limited to 'compiler/rustc_parse/src/lexer/mod.rs')
| -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 73ca9b04b37..98befe4066b 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::RUST_2021_TOKEN_PREFIXES; +use rustc_session::lint::builtin::RUST_2021_PREFIXES_INCOMPATIBLE_SYNTAX; 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( - &RUST_2021_TOKEN_PREFIXES, + &RUST_2021_PREFIXES_INCOMPATIBLE_SYNTAX, prefix_span, ast::CRATE_NODE_ID, &msg, |
