Make SubdiagMessageOp
well-formed
This commit is contained in:
parent
fe61575228
commit
6e4cd8b7cc
@ -189,7 +189,8 @@ where
|
||||
);
|
||||
}
|
||||
|
||||
pub trait SubdiagMessageOp<G> = Fn(&mut Diag<'_, G>, SubdiagMessage) -> SubdiagMessage;
|
||||
pub trait SubdiagMessageOp<G: EmissionGuarantee> =
|
||||
Fn(&mut Diag<'_, G>, SubdiagMessage) -> SubdiagMessage;
|
||||
|
||||
/// Trait implemented by lint types. This should not be implemented manually. Instead, use
|
||||
/// `#[derive(LintDiagnostic)]` -- see [rustc_macros::LintDiagnostic].
|
||||
|
Loading…
x
Reference in New Issue
Block a user