1
Fork 0

Simplify lint decorator derive too

This commit is contained in:
Michael Goulet 2023-12-15 16:17:55 +00:00
parent ca5c68a110
commit 108bec6723
4 changed files with 17 additions and 68 deletions

View file

@ -91,10 +91,7 @@ where
#[rustc_diagnostic_item = "DecorateLint"]
pub trait DecorateLint<'a, G: EmissionGuarantee> {
/// Decorate and emit a lint.
fn decorate_lint<'b>(
self,
diag: &'b mut DiagnosticBuilder<'a, G>,
) -> &'b mut DiagnosticBuilder<'a, G>;
fn decorate_lint<'b>(self, diag: &'b mut DiagnosticBuilder<'a, G>);
fn msg(&self) -> DiagnosticMessage;
}