We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f4248f commit e3c6279Copy full SHA for e3c6279
compiler/rustc_ast_passes/src/errors.rs
@@ -663,7 +663,10 @@ pub struct EqualityConstraintToAssocConstraintSuggestion {
663
}
664
665
impl AddToDiagnostic for EqualityConstraintToAssocConstraintSuggestion {
666
- fn add_to_diagnostic(self, diag: &mut Diagnostic) {
+ fn add_to_diagnostic_with<F>(self, diag: &mut Diagnostic, _: F)
667
+ where
668
+ F: Fn(&mut Diagnostic, SubdiagnosticMessage) -> SubdiagnosticMessage,
669
+ {
670
diag.set_arg("assoc_ty", self.assoc_ty);
671
diag.multipart_suggestion(
672
fluent::ast_passes::assoc_constraint_suggestion,
0 commit comments