Do not execute captures code when lowering lifetimes as GenericArg
This commit is contained in:
parent
9c0d9babd1
commit
20c88a2a30
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
},
|
||||
));
|
||||
|
|
Loading…
Add table
Reference in a new issue