diff options
| author | Michael Goulet <michael@errs.io> | 2023-12-15 16:17:55 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-12-16 02:07:01 +0000 |
| commit | 108bec67232520a124100a928a3ddf1d72d7dc60 (patch) | |
| tree | 31c41794c0de4c4d01196a5224172df09d7b474d /compiler/rustc_errors/src | |
| parent | ca5c68a110099b17c3537e6e5840dbcc21b0e3ca (diff) | |
| download | rust-108bec67232520a124100a928a3ddf1d72d7dc60.tar.gz rust-108bec67232520a124100a928a3ddf1d72d7dc60.zip | |
Simplify lint decorator derive too
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/diagnostic.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_errors/src/diagnostic.rs b/compiler/rustc_errors/src/diagnostic.rs index 4fb63d67e78..403e0ec7950 100644 --- a/compiler/rustc_errors/src/diagnostic.rs +++ b/compiler/rustc_errors/src/diagnostic.rs @@ -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; } |
