Do not require const predicates to hold when checking if a projection type is wf
This commit is contained in:
parent
4b539b04a6
commit
4231661789
@ -392,7 +392,8 @@ impl<'tcx> WfPredicates<'tcx> {
|
||||
// `i32: Clone`
|
||||
// `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);
|
||||
|
||||
let tcx = self.tcx();
|
||||
|
Loading…
x
Reference in New Issue
Block a user