about summary refs log tree commit diff
path: root/compiler/rustc_macros/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-12-15 16:17:55 +0000
committerMichael Goulet <michael@errs.io>2023-12-16 02:07:01 +0000
commit108bec67232520a124100a928a3ddf1d72d7dc60 (patch)
tree31c41794c0de4c4d01196a5224172df09d7b474d /compiler/rustc_macros/src
parentca5c68a110099b17c3537e6e5840dbcc21b0e3ca (diff)
downloadrust-108bec67232520a124100a928a3ddf1d72d7dc60.tar.gz
rust-108bec67232520a124100a928a3ddf1d72d7dc60.zip
Simplify lint decorator derive too
Diffstat (limited to 'compiler/rustc_macros/src')
-rw-r--r--compiler/rustc_macros/src/diagnostics/diagnostic.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_macros/src/diagnostics/diagnostic.rs b/compiler/rustc_macros/src/diagnostics/diagnostic.rs
index 31ad9cdb216..cd61544f69d 100644
--- a/compiler/rustc_macros/src/diagnostics/diagnostic.rs
+++ b/compiler/rustc_macros/src/diagnostics/diagnostic.rs
@@ -175,9 +175,9 @@ impl<'a> LintDiagnosticDerive<'a> {
                 fn decorate_lint<'__b>(
                     self,
                     #diag: &'__b mut rustc_errors::DiagnosticBuilder<'__a, ()>
-                ) -> &'__b mut rustc_errors::DiagnosticBuilder<'__a, ()> {
+                ) {
                     use rustc_errors::IntoDiagnosticArg;
-                    #implementation
+                    #implementation;
                 }
 
                 fn msg(&self) -> rustc_errors::DiagnosticMessage {