Skip to content

Commit b17b20c

Browse files
committed
Add docstring to deny_equality_constraints
1 parent b13f234 commit b17b20c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc_ast_passes/ast_validation.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1291,6 +1291,8 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
12911291
}
12921292
}
12931293

1294+
/// When encountering an equality constraint in a `where` clause, emit an error. If the code seems
1295+
/// like it's setting an associated type, provide an appropriate suggestion.
12941296
fn deny_equality_constraints(
12951297
this: &mut AstValidator<'_>,
12961298
predicate: &WhereEqPredicate,

0 commit comments

Comments
 (0)