Use nominal_obligations_without_const
in wf for FnDef
This commit is contained in:
parent
85f4f41deb
commit
b3a328eecf
2 changed files with 6 additions and 1 deletions
|
@ -547,7 +547,7 @@ impl<'tcx> WfPredicates<'tcx> {
|
|||
}
|
||||
|
||||
ty::FnDef(did, substs) => {
|
||||
let obligations = self.nominal_obligations(did, substs);
|
||||
let obligations = self.nominal_obligations_without_const(did, substs);
|
||||
self.out.extend(obligations);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue