Do not require const predicates to hold when checking if a projection type is wf
This commit is contained in:
parent
4b539b04a6
commit
4231661789
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue