Review changes
This commit is contained in:
parent
c920eb88b2
commit
2b151fd5c8
8 changed files with 130 additions and 50 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue