Rename DecorateLint
as LintDiagnostic
.
To match `derive(LintDiagnostic)`.
This commit is contained in:
parent
541d7cc65c
commit
e9f0d9be0e
16 changed files with 54 additions and 54 deletions
|
@ -168,7 +168,7 @@ pub(super) fn lint<'tcx, 'mir, L>(
|
|||
lint: &'static rustc_session::lint::Lint,
|
||||
decorator: impl FnOnce(Vec<errors::FrameNote>) -> L,
|
||||
) where
|
||||
L: for<'a> rustc_errors::DecorateLint<'a, ()>,
|
||||
L: for<'a> rustc_errors::LintDiagnostic<'a, ()>,
|
||||
{
|
||||
let (span, frames) = get_span_and_frames(tcx, machine);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue