Skip to content

Commit 2da279c

Browse files
hotfix
1 parent fea073f commit 2da279c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_errors/src/diagnostic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ where
189189
);
190190
}
191191

192-
pub trait SubdiagMessageOp<G> = Fn(&mut Diag<'_, G>, SubdiagMessage) -> SubdiagMessage;
192+
pub trait SubdiagMessageOp<G: EmissionGuarantee> = Fn(&mut Diag<'_, G>, SubdiagMessage) -> SubdiagMessage;
193193

194194
/// Trait implemented by lint types. This should not be implemented manually. Instead, use
195195
/// `#[derive(LintDiagnostic)]` -- see [rustc_macros::LintDiagnostic].

0 commit comments

Comments
 (0)