about summary refs log tree commit diff
path: root/compiler/rustc_macros/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-12-19 08:11:25 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-12-19 08:11:25 +1100
commit18251c480b37c96db2d93ce79c138754d4e28904 (patch)
treeaba8e3a6df304ef206d5ea1d5987f295e8b5c92d /compiler/rustc_macros/src
parentcea683c08f775f980e5e8de408ea3b47235329c7 (diff)
downloadrust-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.rs2
-rw-r--r--compiler/rustc_macros/src/diagnostics/subdiagnostic.rs1
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
                 }
             }