Skip to content

Commit e3c6279

Browse files
committed
resolve rebase error
1 parent 4f4248f commit e3c6279

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/rustc_ast_passes/src/errors.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,10 @@ pub struct EqualityConstraintToAssocConstraintSuggestion {
663663
}
664664

665665
impl AddToDiagnostic for EqualityConstraintToAssocConstraintSuggestion {
666-
fn add_to_diagnostic(self, diag: &mut Diagnostic) {
666+
fn add_to_diagnostic_with<F>(self, diag: &mut Diagnostic, _: F)
667+
where
668+
F: Fn(&mut Diagnostic, SubdiagnosticMessage) -> SubdiagnosticMessage,
669+
{
667670
diag.set_arg("assoc_ty", self.assoc_ty);
668671
diag.multipart_suggestion(
669672
fluent::ast_passes::assoc_constraint_suggestion,

0 commit comments

Comments
 (0)