Properly formatting the multipart suggestion
This commit is contained in:
parent
365457bd25
commit
24c8e27a1d
1 changed files with 1 additions and 1 deletions
|
@ -1336,7 +1336,7 @@ impl<'a, 'tcx> LifetimeContext<'a, 'tcx> {
|
||||||
|
|
||||||
diag.multipart_suggestion("consider introducing a named lifetime parameter",
|
diag.multipart_suggestion("consider introducing a named lifetime parameter",
|
||||||
vec![
|
vec![
|
||||||
(lifetime_ref.span, "&'a ".to_owned()),
|
(lifetime_ref.span.shrink_to_hi(), "'a ".to_owned()),
|
||||||
(generics.span, "<'a>".to_owned())
|
(generics.span, "<'a>".to_owned())
|
||||||
], rustc_errors::Applicability::MaybeIncorrect);
|
], rustc_errors::Applicability::MaybeIncorrect);
|
||||||
diag.emit();
|
diag.emit();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue