Properly formatting the multipart suggestion
This commit is contained in:
parent
365457bd25
commit
24c8e27a1d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user