Skip to content

Commit 6f028fe

Browse files
committed
Specify suggestion applicability
1 parent 45dfe43 commit 6f028fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5247,9 +5247,10 @@ impl<'a> Parser<'a> {
52475247
"lifetime parameters must be declared prior to type parameters",
52485248
);
52495249
if !suggestions.is_empty() {
5250-
err.multipart_suggestion(
5250+
err.multipart_suggestion_with_applicability(
52515251
"move the lifetime parameter prior to the first type parameter",
52525252
suggestions,
5253+
Applicability::MachineApplicable,
52535254
);
52545255
}
52555256
err.emit();

0 commit comments

Comments
 (0)