Remove unnecessary use items in derived IntoDiagnostic impls.

Presumably these are a hangover from an earlier time when they were
necessary.
This commit is contained in:
Nicholas Nethercote 2023-12-19 08:11:25 +11:00
parent cea683c08f
commit 18251c480b
2 changed files with 0 additions and 3 deletions

View File

@ -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;
}

View File

@ -94,7 +94,6 @@ impl SubdiagnosticDeriveBuilder {
rustc_errors::SubdiagnosticMessage
) -> rustc_errors::SubdiagnosticMessage,
{
use rustc_errors::{Applicability, IntoDiagnosticArg};
#implementation
}
}