diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-27 09:00:48 +1000 | 
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-28 08:15:15 +1000 | 
| commit | cf0c2c73334eb1c7c6a45e2603244238e4bd3ef7 (patch) | |
| tree | 0d67667a2df1e0e54a318dc988bd02d8fc7baab7 /compiler/rustc_lint/src/context/diagnostics.rs | |
| parent | 3607cee3e7009c91dfdf3d4f8669ac8156a36ac0 (diff) | |
| download | rust-cf0c2c73334eb1c7c6a45e2603244238e4bd3ef7.tar.gz rust-cf0c2c73334eb1c7c6a45e2603244238e4bd3ef7.zip | |
Convert `proc_macro_back_compat` lint to an unconditional error.
We still check for the `rental`/`allsorts-rental` crates. But now if they are detected we just emit a fatal error, instead of emitting a warning and providing alternative behaviour. The original "hack" implementing alternative behaviour was added in #73345. The lint was added in #83127. The tracking issue is #83125. The direct motivation for the change is that providing the alternative behaviour is interfering with #125174 and follow-on work.
Diffstat (limited to 'compiler/rustc_lint/src/context/diagnostics.rs')
| -rw-r--r-- | compiler/rustc_lint/src/context/diagnostics.rs | 3 | 
1 files changed, 0 insertions, 3 deletions
| diff --git a/compiler/rustc_lint/src/context/diagnostics.rs b/compiler/rustc_lint/src/context/diagnostics.rs index 26f34486a3d..19470415684 100644 --- a/compiler/rustc_lint/src/context/diagnostics.rs +++ b/compiler/rustc_lint/src/context/diagnostics.rs @@ -159,9 +159,6 @@ pub(super) fn decorate_lint(sess: &Session, diagnostic: BuiltinLintDiag, diag: & BuiltinLintDiag::LegacyDeriveHelpers(label_span) => { lints::LegacyDeriveHelpers { span: label_span }.decorate_lint(diag); } - BuiltinLintDiag::ProcMacroBackCompat { crate_name, fixed_version } => { - lints::ProcMacroBackCompat { crate_name, fixed_version }.decorate_lint(diag); - } BuiltinLintDiag::OrPatternsBackCompat(suggestion_span, suggestion) => { lints::OrPatternsBackCompat { span: suggestion_span, suggestion }.decorate_lint(diag); } | 
