diff options
| author | Jubilee <workingjubilee@gmail.com> | 2025-05-30 13:52:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-30 13:52:28 -0700 |
| commit | 955ebfc7d3f9af7df877e92d0264e9942f1f086c (patch) | |
| tree | 3eab367bbdd0fc69e2da5ff13be2bebc41f0e7ac /compiler | |
| parent | f91dc5d28f2f74782a3c8bf9ca9e46f51efc4a76 (diff) | |
| parent | 4a1843924e80815b159963693d4a5d3362cb74d8 (diff) | |
Rollup merge of #141781 - matthewjasper:unused-unsafe-lifetimes, r=compiler-errors
Fix spans for unsafe binders closes rust-lang/rust#141758 r? ``@compiler-errors``
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_resolve/src/late.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_resolve/src/late.rs b/compiler/rustc_resolve/src/late.rs index 4cfa079e49b..fb1534d0b27 100644 --- a/compiler/rustc_resolve/src/late.rs +++ b/compiler/rustc_resolve/src/late.rs @@ -934,8 +934,7 @@ impl<'ra: 'ast, 'ast, 'tcx> Visitor<'ast> for LateResolutionVisitor<'_, 'ast, 'r ) } TyKind::UnsafeBinder(unsafe_binder) => { - // FIXME(unsafe_binder): Better span - let span = ty.span; + let span = ty.span.shrink_to_lo().to(unsafe_binder.inner_ty.span.shrink_to_lo()); self.with_generic_param_rib( &unsafe_binder.generic_params, RibKind::Normal, |
