Skip to content

Commit 29cdd73

Browse files
committed
make closure_self_ty invokable with 'gcx and 'tcx
1 parent 5aa1cbf commit 29cdd73

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc_mir/build/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,10 @@ fn create_constructor_shim<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
240240
///////////////////////////////////////////////////////////////////////////
241241
// BuildMir -- walks a crate, looking for fn items and methods to build MIR from
242242

243-
pub fn closure_self_ty<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
244-
closure_expr_id: ast::NodeId,
245-
body_id: hir::BodyId)
246-
-> Ty<'tcx> {
243+
pub fn closure_self_ty<'a, 'gcx, 'tcx>(tcx: TyCtxt<'a, 'gcx, 'tcx>,
244+
closure_expr_id: ast::NodeId,
245+
body_id: hir::BodyId)
246+
-> Ty<'tcx> {
247247
let closure_expr_hir_id = tcx.hir.node_to_hir_id(closure_expr_id);
248248
let closure_ty = tcx.body_tables(body_id).node_id_to_type(closure_expr_hir_id);
249249

0 commit comments

Comments
 (0)