Add docstring to deny_equality_constraints

This commit is contained in:
Esteban Küber 2020-05-04 11:09:10 -07:00
parent b13f234a1b
commit b17b20cafc

View file

@ -1291,6 +1291,8 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
}
}
/// When encountering an equality constraint in a `where` clause, emit an error. If the code seems
/// like it's setting an associated type, provide an appropriate suggestion.
fn deny_equality_constraints(
this: &mut AstValidator<'_>,
predicate: &WhereEqPredicate,