mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
Do not execute captures code when lowering lifetimes as GenericArg
This commit is contained in:
parent
9c0d9babd1
commit
20c88a2a30
@ -1423,7 +1423,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
|
|||||||
|(_, (span, _, p_name, res))| {
|
|(_, (span, _, p_name, res))| {
|
||||||
let id = self.next_node_id();
|
let id = self.next_node_id();
|
||||||
let ident = Ident::new(p_name.ident().name, span);
|
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)
|
hir::GenericArg::Lifetime(l)
|
||||||
},
|
},
|
||||||
));
|
));
|
||||||
|
Loading…
Reference in New Issue
Block a user