Skip to content

Commit c7a21fe

Browse files
committed
[crater only] Syntactically reject equality predicates
1 parent 024757f commit c7a21fe

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

compiler/rustc_parse/src/parser/generics.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@ impl<'a> Parser<'a> {
595595
// FIXME: We are just dropping the binders in lifetime_defs on the floor here.
596596
} else if self.eat(exp!(Eq)) || self.eat(exp!(EqEq)) {
597597
let rhs_ty = self.parse_ty()?;
598+
self.dcx().span_err(ty.span.to(rhs_ty.span), "[[[ equality predicate ]]]");
598599
Ok(ast::WherePredicateKind::EqPredicate(ast::WhereEqPredicate { lhs_ty: ty, rhs_ty }))
599600
} else {
600601
self.maybe_recover_bounds_doubled_colon(&ty)?;

0 commit comments

Comments
 (0)