Use LocalDefId for closures more
This commit is contained in:
parent
1202bbaf48
commit
cf2433a74f
29 changed files with 164 additions and 171 deletions
|
@ -17,8 +17,8 @@ pub(crate) fn dump_closure_profile<'tcx>(tcx: TyCtxt<'tcx>, closure_instance: In
|
|||
return;
|
||||
};
|
||||
|
||||
let closure_def_id = closure_instance.def_id();
|
||||
let typeck_results = tcx.typeck(closure_def_id.expect_local());
|
||||
let closure_def_id = closure_instance.def_id().expect_local();
|
||||
let typeck_results = tcx.typeck(closure_def_id);
|
||||
|
||||
if typeck_results.closure_size_eval.contains_key(&closure_def_id) {
|
||||
let param_env = ty::ParamEnv::reveal_all();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue