diff options
| author | Jack Huey <31162821+jackh726@users.noreply.github.com> | 2022-02-14 13:00:10 -0500 |
|---|---|---|
| committer | Jack Huey <31162821+jackh726@users.noreply.github.com> | 2022-03-05 13:15:00 -0500 |
| commit | 2b151fd5c8a106f276477357b5371d1184d940d4 (patch) | |
| tree | e381d0c80e535cdfaeb0f23da8eb9d2cfdf31dba /compiler/rustc_lint/src | |
| parent | c920eb88b247c40a64437db54c652f14b83113c3 (diff) | |
| download | rust-2b151fd5c8a106f276477357b5371d1184d940d4.tar.gz rust-2b151fd5c8a106f276477357b5371d1184d940d4.zip | |
Review changes
Diffstat (limited to 'compiler/rustc_lint/src')
| -rw-r--r-- | compiler/rustc_lint/src/context.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/compiler/rustc_lint/src/context.rs b/compiler/rustc_lint/src/context.rs index 92adb718933..b892e520d3b 100644 --- a/compiler/rustc_lint/src/context.rs +++ b/compiler/rustc_lint/src/context.rs @@ -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. |
