Skip to content

Commit 7f20300

Browse files
authored
Unrolled build for rust-lang#122503
Rollup merge of rust-lang#122503 - compiler-errors:trait-alias-wf, r=Nilstrieb Make `SubdiagMessageOp` well-formed `WF(Diag<'_, G>)` requires `G: EmissionGuarantee`, but we don't currently check this is true due to limitations in the solver. Probably still worth enforcing. r? `@nnethercote` (or anyone can r+ this, really)
2 parents f4b771b + 6e4cd8b commit 7f20300

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_errors/src/diagnostic.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ where
189189
);
190190
}
191191

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

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

0 commit comments

Comments
 (0)