From 20c88a2a307f61441e797839d94058bfac152dc8 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Tue, 26 Jul 2022 15:30:58 -0300 Subject: [PATCH] Do not execute captures code when lowering lifetimes as GenericArg --- compiler/rustc_ast_lowering/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs index 6c0521da1ad..bf1ced4f963 100644 --- a/compiler/rustc_ast_lowering/src/lib.rs +++ b/compiler/rustc_ast_lowering/src/lib.rs @@ -1423,7 +1423,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> { |(_, (span, _, p_name, res))| { let id = self.next_node_id(); let ident = Ident::new(p_name.ident().name, span); - let l = self.new_named_lifetime_with_res(id, span, ident, res, true); + let l = self.new_named_lifetime_with_res(id, span, ident, res, false); hir::GenericArg::Lifetime(l) }, ));