Do not require const predicates to hold when checking if a projection type is wf
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user