@@ -77,7 +77,7 @@ impl<'tcx> LowerInto<'tcx, chalk_ir::InEnvironment<chalk_ir::Goal<RustInterner<'
77
77
) -> chalk_ir:: InEnvironment < chalk_ir:: Goal < RustInterner < ' tcx > > > {
78
78
let clauses = self . environment . into_iter ( ) . filter_map ( |clause| match clause {
79
79
ChalkEnvironmentClause :: Predicate ( predicate) => {
80
- match & predicate. kind ( ) {
80
+ match predicate. kind ( ) {
81
81
ty:: PredicateKind :: Trait ( predicate, _) => {
82
82
let ( predicate, binders, _named_regions) =
83
83
collect_bound_vars ( interner, interner. tcx , predicate) ;
@@ -126,7 +126,8 @@ impl<'tcx> LowerInto<'tcx, chalk_ir::InEnvironment<chalk_ir::Goal<RustInterner<'
126
126
| ty:: PredicateKind :: ClosureKind ( ..)
127
127
| ty:: PredicateKind :: Subtype ( ..)
128
128
| ty:: PredicateKind :: ConstEvaluatable ( ..)
129
- | ty:: PredicateKind :: ConstEquate ( ..) => {
129
+ | ty:: PredicateKind :: ConstEquate ( ..)
130
+ | ty:: PredicateKind :: WellFormedConst ( ..) => {
130
131
bug ! ( "unexpected predicate {}" , predicate)
131
132
}
132
133
}
@@ -193,7 +194,8 @@ impl<'tcx> LowerInto<'tcx, chalk_ir::GoalData<RustInterner<'tcx>>> for ty::Predi
193
194
| ty:: PredicateKind :: ClosureKind ( ..)
194
195
| ty:: PredicateKind :: Subtype ( ..)
195
196
| ty:: PredicateKind :: ConstEvaluatable ( ..)
196
- | ty:: PredicateKind :: ConstEquate ( ..) => {
197
+ | ty:: PredicateKind :: ConstEquate ( ..)
198
+ | ty:: PredicateKind :: WellFormedConst ( ..) => {
197
199
chalk_ir:: GoalData :: All ( chalk_ir:: Goals :: new ( interner) )
198
200
}
199
201
}
@@ -460,7 +462,8 @@ impl<'tcx> LowerInto<'tcx, Option<chalk_ir::QuantifiedWhereClause<RustInterner<'
460
462
| ty:: PredicateKind :: ClosureKind ( ..)
461
463
| ty:: PredicateKind :: Subtype ( ..)
462
464
| ty:: PredicateKind :: ConstEvaluatable ( ..)
463
- | ty:: PredicateKind :: ConstEquate ( ..) => bug ! ( "unexpected predicate {}" , & self ) ,
465
+ | ty:: PredicateKind :: ConstEquate ( ..)
466
+ | ty:: PredicateKind :: WellFormedConst ( ..) => bug ! ( "unexpected predicate {}" , & self ) ,
464
467
}
465
468
}
466
469
}
0 commit comments