We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b89ea96 commit 10a37bfCopy full SHA for 10a37bf
compiler/rustc_mir_build/src/build/expr/as_place.rs
@@ -246,8 +246,7 @@ fn to_upvars_resolved_place_builder<'a, 'tcx>(
246
return Err(from_builder);
247
};
248
249
- let closure_ty = typeck_results
250
- .node_type(tcx.hir().local_def_id_to_hir_id(closure_def_id.expect_local()));
+ let closure_ty = typeck_results.node_type(closure_hir_id);
251
252
let substs = match closure_ty.kind() {
253
ty::Closure(_, substs) => ty::UpvarSubsts::Closure(substs),
0 commit comments