Simplify lint decorator derive too
This commit is contained in:
parent
ca5c68a110
commit
108bec6723
4 changed files with 17 additions and 68 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue