diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-19 08:11:25 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-19 08:11:25 +1100 |
| commit | 18251c480b37c96db2d93ce79c138754d4e28904 (patch) | |
| tree | aba8e3a6df304ef206d5ea1d5987f295e8b5c92d /compiler/rustc_macros/src | |
| parent | cea683c08f775f980e5e8de408ea3b47235329c7 (diff) | |
| download | rust-18251c480b37c96db2d93ce79c138754d4e28904.tar.gz rust-18251c480b37c96db2d93ce79c138754d4e28904.zip | |
Remove unnecessary `use` items in derived `IntoDiagnostic` impls.
Presumably these are a hangover from an earlier time when they were necessary.
Diffstat (limited to 'compiler/rustc_macros/src')
| -rw-r--r-- | compiler/rustc_macros/src/diagnostics/diagnostic.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_macros/src/diagnostics/subdiagnostic.rs | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_macros/src/diagnostics/diagnostic.rs b/compiler/rustc_macros/src/diagnostics/diagnostic.rs index 5de0203fc1d..76ef2c264a8 100644 --- a/compiler/rustc_macros/src/diagnostics/diagnostic.rs +++ b/compiler/rustc_macros/src/diagnostics/diagnostic.rs @@ -92,7 +92,6 @@ impl<'a> DiagnosticDerive<'a> { self, #dcx: &'_sess rustc_errors::DiagCtxt ) -> rustc_errors::DiagnosticBuilder<'_sess, G> { - use rustc_errors::IntoDiagnosticArg; #implementation } } @@ -177,7 +176,6 @@ impl<'a> LintDiagnosticDerive<'a> { self, #diag: &'__b mut rustc_errors::DiagnosticBuilder<'__a, ()> ) { - use rustc_errors::IntoDiagnosticArg; #implementation; } diff --git a/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs b/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs index 0f9e68cdc50..663abecb67c 100644 --- a/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs +++ b/compiler/rustc_macros/src/diagnostics/subdiagnostic.rs @@ -94,7 +94,6 @@ impl SubdiagnosticDeriveBuilder { rustc_errors::SubdiagnosticMessage ) -> rustc_errors::SubdiagnosticMessage, { - use rustc_errors::{Applicability, IntoDiagnosticArg}; #implementation } } |
