Skip to content

Commit

Permalink
Add docstring to deny_equality_constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed May 4, 2020
1 parent b13f234 commit b17b20c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc_ast_passes/ast_validation.rs
Expand Up @@ -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,
Expand Down

0 comments on commit b17b20c

Please sign in to comment.