Skip to content

Commit c714397

Browse files
committed
chalk
1 parent 3d7637e commit c714397

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/librustc_traits/chalk/lowering.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,8 @@ impl<'tcx> LowerInto<'tcx, chalk_ir::InEnvironment<chalk_ir::Goal<RustInterner<'
126126
| ty::Predicate::ObjectSafe(..)
127127
| ty::Predicate::ClosureKind(..)
128128
| ty::Predicate::Subtype(..)
129-
| ty::Predicate::ConstEvaluatable(..) => {
130-
bug!("unexpected predicate {}", predicate)
131-
}
129+
| ty::Predicate::ConstEvaluatable(..)
130+
| ty::Predicate::ConstEquate(..) => bug!("unexpected predicate {}", predicate),
132131
}
133132
}
134133
ChalkEnvironmentClause::TypeFromEnv(ty) => Some(
@@ -192,9 +191,8 @@ impl<'tcx> LowerInto<'tcx, chalk_ir::GoalData<RustInterner<'tcx>>> for ty::Predi
192191
Predicate::ObjectSafe(..)
193192
| Predicate::ClosureKind(..)
194193
| Predicate::Subtype(..)
195-
| Predicate::ConstEvaluatable(..) => {
196-
chalk_ir::GoalData::All(chalk_ir::Goals::new(interner))
197-
}
194+
| Predicate::ConstEvaluatable(..)
195+
| Predicate::ConstEquate(..) => chalk_ir::GoalData::All(chalk_ir::Goals::new(interner)),
198196
}
199197
}
200198
}
@@ -459,7 +457,8 @@ impl<'tcx> LowerInto<'tcx, Option<chalk_ir::QuantifiedWhereClause<RustInterner<'
459457
Predicate::ObjectSafe(..)
460458
| Predicate::ClosureKind(..)
461459
| Predicate::Subtype(..)
462-
| Predicate::ConstEvaluatable(..) => bug!("unexpected predicate {}", &self),
460+
| Predicate::ConstEvaluatable(..)
461+
| Predicate::ConstEquate(..) => bug!("unexpected predicate {}", &self),
463462
}
464463
}
465464
}

0 commit comments

Comments
 (0)