diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-29 16:40:44 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-03-05 12:15:10 +1100 |
| commit | 7aa0eea19caee96c9c811105b3df610e2759dd49 (patch) | |
| tree | a44027ef593302958886fa1ff3e195bcafde4512 /compiler/rustc_parse/src/lexer | |
| parent | d98ad0a1819ce4cf6dfb1d4c25bab92b830c2f14 (diff) | |
| download | rust-7aa0eea19caee96c9c811105b3df610e2759dd49.tar.gz rust-7aa0eea19caee96c9c811105b3df610e2759dd49.zip | |
Rename `BuiltinLintDiagnostics` as `BuiltinLintDiag`.
Not the dropping of the trailing `s` -- this type describes a single diagnostic and its name should be singular.
Diffstat (limited to 'compiler/rustc_parse/src/lexer')
| -rw-r--r-- | compiler/rustc_parse/src/lexer/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_parse/src/lexer/mod.rs b/compiler/rustc_parse/src/lexer/mod.rs index ca998ccc356..f57945a52df 100644 --- a/compiler/rustc_parse/src/lexer/mod.rs +++ b/compiler/rustc_parse/src/lexer/mod.rs @@ -14,7 +14,7 @@ use rustc_lexer::{Cursor, LiteralKind}; use rustc_session::lint::builtin::{ RUST_2021_PREFIXES_INCOMPATIBLE_SYNTAX, TEXT_DIRECTION_CODEPOINT_IN_COMMENT, }; -use rustc_session::lint::BuiltinLintDiagnostics; +use rustc_session::lint::BuiltinLintDiag; use rustc_session::parse::ParseSess; use rustc_span::symbol::Symbol; use rustc_span::{edition::Edition, BytePos, Pos, Span}; @@ -355,7 +355,7 @@ impl<'psess, 'src> StringReader<'psess, 'src> { span, ast::CRATE_NODE_ID, "unicode codepoint changing visible direction of text present in comment", - BuiltinLintDiagnostics::UnicodeTextFlow(span, content.to_string()), + BuiltinLintDiag::UnicodeTextFlow(span, content.to_string()), ); } } @@ -685,7 +685,7 @@ impl<'psess, 'src> StringReader<'psess, 'src> { prefix_span, ast::CRATE_NODE_ID, format!("prefix `{prefix}` is unknown"), - BuiltinLintDiagnostics::ReservedPrefix(prefix_span), + BuiltinLintDiag::ReservedPrefix(prefix_span), ); } } |
