EarlyBinder::new -> EarlyBinder::bind
This commit is contained in:
parent
70e04bd88d
commit
08d149ca85
46 changed files with 60 additions and 60 deletions
|
@ -69,7 +69,7 @@ fn make_shim<'tcx>(tcx: TyCtxt<'tcx>, instance: ty::InstanceDef<'tcx>) -> Body<'
|
|||
// of this function. Is this intentional?
|
||||
if let Some(ty::Generator(gen_def_id, substs, _)) = ty.map(Ty::kind) {
|
||||
let body = tcx.optimized_mir(*gen_def_id).generator_drop().unwrap();
|
||||
let body = EarlyBinder::new(body.clone()).subst(tcx, substs);
|
||||
let body = EarlyBinder::bind(body.clone()).subst(tcx, substs);
|
||||
debug!("make_shim({:?}) = {:?}", instance, body);
|
||||
return body;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue