Skip to content

Commit 20c88a2

Browse files
committed
Do not execute captures code when lowering lifetimes as GenericArg
1 parent 9c0d9ba commit 20c88a2

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+1
-1
lines changed

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
14231423
|(_, (span, _, p_name, res))| {
14241424
let id = self.next_node_id();
14251425
let ident = Ident::new(p_name.ident().name, span);
1426-
let l = self.new_named_lifetime_with_res(id, span, ident, res, true);
1426+
let l = self.new_named_lifetime_with_res(id, span, ident, res, false);
14271427
hir::GenericArg::Lifetime(l)
14281428
},
14291429
));

0 commit comments

Comments
 (0)