Specify suggestion applicability
This commit is contained in:
parent
45dfe43887
commit
6f028fe8e0
1 changed files with 2 additions and 1 deletions
|
@ -5247,9 +5247,10 @@ impl<'a> Parser<'a> {
|
||||||
"lifetime parameters must be declared prior to type parameters",
|
"lifetime parameters must be declared prior to type parameters",
|
||||||
);
|
);
|
||||||
if !suggestions.is_empty() {
|
if !suggestions.is_empty() {
|
||||||
err.multipart_suggestion(
|
err.multipart_suggestion_with_applicability(
|
||||||
"move the lifetime parameter prior to the first type parameter",
|
"move the lifetime parameter prior to the first type parameter",
|
||||||
suggestions,
|
suggestions,
|
||||||
|
Applicability::MachineApplicable,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
err.emit();
|
err.emit();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue