mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
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:
parent
cea683c08f
commit
18251c480b
@ -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;
|
||||
}
|
||||
|
||||
|
@ -94,7 +94,6 @@ impl SubdiagnosticDeriveBuilder {
|
||||
rustc_errors::SubdiagnosticMessage
|
||||
) -> rustc_errors::SubdiagnosticMessage,
|
||||
{
|
||||
use rustc_errors::{Applicability, IntoDiagnosticArg};
|
||||
#implementation
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user