diff options
| author | stoozy <stoozy@proton.me> | 2022-09-27 11:06:51 -0400 |
|---|---|---|
| committer | stoozy <stoozy@proton.me> | 2022-09-27 11:06:51 -0400 |
| commit | 24c8e27a1d1693786a5ec0ddffedefeb01ff4fb4 (patch) | |
| tree | b65d9fefd76f5c3e88431bc5eba8419f4fbb1167 | |
| parent | 365457bd2590029e0cdba5b401273169c0fa6a79 (diff) | |
| download | rust-24c8e27a1d1693786a5ec0ddffedefeb01ff4fb4.tar.gz rust-24c8e27a1d1693786a5ec0ddffedefeb01ff4fb4.zip | |
Properly formatting the multipart suggestion
| -rw-r--r-- | compiler/rustc_resolve/src/late/lifetimes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/late/lifetimes.rs b/compiler/rustc_resolve/src/late/lifetimes.rs index 991d8f88307..9b66c42651d 100644 --- a/compiler/rustc_resolve/src/late/lifetimes.rs +++ b/compiler/rustc_resolve/src/late/lifetimes.rs @@ -1336,7 +1336,7 @@ impl<'a, 'tcx> LifetimeContext<'a, 'tcx> { diag.multipart_suggestion("consider introducing a named lifetime parameter", vec![ - (lifetime_ref.span, "&'a ".to_owned()), + (lifetime_ref.span.shrink_to_hi(), "'a ".to_owned()), (generics.span, "<'a>".to_owned()) ], rustc_errors::Applicability::MaybeIncorrect); diag.emit(); |
