Skip to content

Commit 24c8e27

Browse files
committed
Properly formatting the multipart suggestion
1 parent 365457b commit 24c8e27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_resolve/src/late/lifetimes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,7 @@ impl<'a, 'tcx> LifetimeContext<'a, 'tcx> {
13361336

13371337
diag.multipart_suggestion("consider introducing a named lifetime parameter",
13381338
vec![
1339-
(lifetime_ref.span, "&'a ".to_owned()),
1339+
(lifetime_ref.span.shrink_to_hi(), "'a ".to_owned()),
13401340
(generics.span, "<'a>".to_owned())
13411341
], rustc_errors::Applicability::MaybeIncorrect);
13421342
diag.emit();

0 commit comments

Comments
 (0)