Use newtype_index!-generated types more idiomatically

This commit is contained in:
Yotam Ofek
2025-04-14 15:52:25 +00:00
parent c580c498a1
commit 4b63362f3d
20 changed files with 61 additions and 87 deletions

View File

@@ -448,8 +448,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
generic_args.args.insert_many(
0,
(start.as_u32()..end.as_u32()).map(|i| {
let id = NodeId::from_u32(i);
(start..end).map(|id| {
let l = self.lower_lifetime_anon_in_path(id, elided_lifetime_span);
GenericArg::Lifetime(l)
}),