diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-08-07 14:35:11 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-08-07 14:35:11 +0200 |
| commit | f6af4efec579edc8d10f8c2ba5d3c43331130b39 (patch) | |
| tree | 45b07c47717ae0dd4f5ec33455169ad50797c76f /compiler/rustc_ast_lowering/src | |
| parent | 55f46419afd2e49acfc6be176ad4aeadaa5686d7 (diff) | |
| download | rust-f6af4efec579edc8d10f8c2ba5d3c43331130b39.tar.gz rust-f6af4efec579edc8d10f8c2ba5d3c43331130b39.zip | |
Use start_point instead of next_point to point to elided lifetime ampersand.
Diffstat (limited to 'compiler/rustc_ast_lowering/src')
| -rw-r--r-- | compiler/rustc_ast_lowering/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs index a5b089b032d..0562f7b88a3 100644 --- a/compiler/rustc_ast_lowering/src/lib.rs +++ b/compiler/rustc_ast_lowering/src/lib.rs @@ -1228,7 +1228,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> { } else { self.next_node_id() }; - let span = self.tcx.sess.source_map().next_point(t.span.shrink_to_lo()); + let span = self.tcx.sess.source_map().start_point(t.span); Lifetime { ident: Ident::new(kw::UnderscoreLifetime, span), id } }); let lifetime = self.lower_lifetime(®ion); |
