1
Fork 0

Review changes

This commit is contained in:
Jack Huey 2022-02-14 13:00:10 -05:00
parent c920eb88b2
commit 2b151fd5c8
8 changed files with 130 additions and 50 deletions

View file

@ -819,12 +819,14 @@ pub trait LintContext: Sized {
}
},
BuiltinLintDiagnostics::DeprecatedWhereclauseLocation(new_span, suggestion) => {
db.span_suggestion(
new_span,
"move it here",
suggestion,
db.multipart_suggestion(
"move it to the end of the type declaration",
vec![(db.span.primary_span().unwrap(), "".to_string()), (new_span, suggestion)],
Applicability::MachineApplicable,
);
db.note(
"see issue #89122 <https://github.com/rust-lang/rust/issues/89122> for more information",
);
},
}
// Rewrap `db`, and pass control to the user.