1
Fork 0

Specify suggestion applicability

This commit is contained in:
Esteban Küber 2018-11-26 13:58:46 -08:00
parent 45dfe43887
commit 6f028fe8e0

View file

@ -5247,9 +5247,10 @@ impl<'a> Parser<'a> {
"lifetime parameters must be declared prior to type parameters",
);
if !suggestions.is_empty() {
err.multipart_suggestion(
err.multipart_suggestion_with_applicability(
"move the lifetime parameter prior to the first type parameter",
suggestions,
Applicability::MachineApplicable,
);
}
err.emit();