1
Fork 0

Do not require const predicates to hold when checking if a projection type is wf

This commit is contained in:
Deadbeef 2022-08-28 04:02:43 +00:00
parent 4b539b04a6
commit 4231661789

View file

@ -392,7 +392,8 @@ impl<'tcx> WfPredicates<'tcx> {
// `i32: Clone` // `i32: Clone`
// `i32: Copy` // `i32: Copy`
// ] // ]
let obligations = self.nominal_obligations(data.item_def_id, data.substs); // Projection types do not require const predicates.
let obligations = self.nominal_obligations_without_const(data.item_def_id, data.substs);
self.out.extend(obligations); self.out.extend(obligations);
let tcx = self.tcx(); let tcx = self.tcx();