mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 12:39:31 +03:00
Properly formatting the multipart suggestion
This commit is contained in:
@@ -1336,7 +1336,7 @@ fn resolve_lifetime_ref(
|
||||
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user