mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Remove unused rustc_errors::LintDiagnosticBox trait
This commit is contained in:
@@ -137,16 +137,6 @@ pub trait LintDiagnostic<'a, G: EmissionGuarantee> {
|
||||
fn decorate_lint<'b>(self, diag: &'b mut Diag<'a, G>);
|
||||
}
|
||||
|
||||
pub trait LintDiagnosticBox<'a, G: EmissionGuarantee> {
|
||||
fn decorate_lint_box<'b>(self: Box<Self>, diag: &'b mut Diag<'a, G>);
|
||||
}
|
||||
|
||||
impl<'a, G: EmissionGuarantee, D: LintDiagnostic<'a, G>> LintDiagnosticBox<'a, G> for D {
|
||||
fn decorate_lint_box<'b>(self: Box<Self>, diag: &'b mut Diag<'a, G>) {
|
||||
self.decorate_lint(diag);
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Encodable, Decodable)]
|
||||
pub(crate) struct DiagLocation {
|
||||
file: Cow<'static, str>,
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
pub use decorate_diag::{BufferedEarlyLint, DecorateDiagCompat, LintBuffer};
|
||||
pub use diagnostic::{
|
||||
BugAbort, Diag, DiagInner, DiagStyledString, Diagnostic, EmissionGuarantee, FatalAbort,
|
||||
LintDiagnostic, LintDiagnosticBox, StringPart, Subdiag, Subdiagnostic,
|
||||
LintDiagnostic, StringPart, Subdiag, Subdiagnostic,
|
||||
};
|
||||
pub use diagnostic_impls::{
|
||||
DiagSymbolList, ElidedLifetimeInPathSubdiag, ExpectedLifetimeParameter,
|
||||
|
||||
Reference in New Issue
Block a user