diff options
| author | Yotam Ofek <yotam.ofek@gmail.com> | 2025-04-14 15:52:25 +0000 |
|---|---|---|
| committer | Yotam Ofek <yotam.ofek@gmail.com> | 2025-04-14 16:17:06 +0000 |
| commit | 4b63362f3d0a455707f64ce345ca3a5467b04764 (patch) | |
| tree | cb043c193a5dd7a45b176748fc069274f5806cf2 /compiler/rustc_resolve | |
| parent | c580c498a1fe144d7c5b2dfc7faab1a229aa288b (diff) | |
| download | rust-4b63362f3d0a455707f64ce345ca3a5467b04764.tar.gz rust-4b63362f3d0a455707f64ce345ca3a5467b04764.zip | |
Use `newtype_index!`-generated types more idiomatically
Diffstat (limited to 'compiler/rustc_resolve')
| -rw-r--r-- | compiler/rustc_resolve/src/late.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/late.rs b/compiler/rustc_resolve/src/late.rs index a7170edb986..13de8168488 100644 --- a/compiler/rustc_resolve/src/late.rs +++ b/compiler/rustc_resolve/src/late.rs @@ -1948,7 +1948,7 @@ impl<'a, 'ast, 'ra: 'ast, 'tcx> LateResolutionVisitor<'a, 'ast, 'ra, 'tcx> { self.record_lifetime_res( anchor_id, - LifetimeRes::ElidedAnchor { start: id, end: NodeId::from_u32(id.as_u32() + 1) }, + LifetimeRes::ElidedAnchor { start: id, end: id + 1 }, LifetimeElisionCandidate::Ignore, ); self.resolve_anonymous_lifetime(<, anchor_id, true); |
