diff options
| author | Jubilee <46493976+workingjubilee@users.noreply.github.com> | 2023-12-15 21:32:58 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-15 21:32:58 -0800 |
| commit | c7b492eac1f059908c817d525554fa36c11eb206 (patch) | |
| tree | 98ffe28dcb20d40d928f4f44d5ef7589c2b01115 /compiler/rustc_errors/src | |
| parent | 6c2f00fbd7179fccf9f006534969b64817b70178 (diff) | |
| parent | 108bec67232520a124100a928a3ddf1d72d7dc60 (diff) | |
| download | rust-c7b492eac1f059908c817d525554fa36c11eb206.tar.gz rust-c7b492eac1f059908c817d525554fa36c11eb206.zip | |
Rollup merge of #118989 - compiler-errors:lint-decorator-2, r=WaffleLapkin
Simplify lint decorator derive too See last commit, since this is stacked on top of #118727. r? WaffleLapkin
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; } |
