Change InferCtxtBuilder from enter to build
This commit is contained in:
parent
91269fa5b8
commit
283abbf0e7
53 changed files with 1966 additions and 2182 deletions
|
@ -129,7 +129,7 @@ impl<'tcx> InheritedBuilder<'tcx> {
|
|||
F: FnOnce(&Inherited<'tcx>) -> R,
|
||||
{
|
||||
let def_id = self.def_id;
|
||||
self.infcx.enter(|infcx| f(&Inherited::new(infcx, def_id, self.typeck_results)))
|
||||
f(&Inherited::new(self.infcx.build(), def_id, self.typeck_results))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue