Skip to content

Commit 596b2a1

Browse files
committed
Auto merge of #121240 - matthiaskrgr:rollup-lfb5i9w, r=matthiaskrgr
Rollup of 9 pull requests Successful merges: - #120952 (Don't use mem::zeroed in vec::IntoIter) - #121085 (errors: only eagerly translate subdiagnostics) - #121091 (use build.rustc config and skip-stage0-validation flag) - #121149 (Fix typo in VecDeque::handle_capacity_increase() doc comment.) - #121193 (Use fulfillment in next trait solver coherence) - #121209 (Make `CodegenBackend::join_codegen` infallible.) - #121210 (Fix `cfg(target_abi = "sim")` on `i386-apple-ios`) - #121228 (create stamp file for clippy) - #121231 (remove a couple of redundant clones) r? `@ghost` `@rustbot` modify labels: rollup
2 parents d0cd2bb + 1b20ece commit 596b2a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_utils/src/diagnostics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ pub fn span_lint_and_help<T: LintContext>(
8484
cx.span_lint(lint, span, msg.to_string(), |diag| {
8585
let help = help.to_string();
8686
if let Some(help_span) = help_span {
87-
diag.span_help(help_span, help.to_string());
87+
diag.span_help(help_span, help);
8888
} else {
89-
diag.help(help.to_string());
89+
diag.help(help);
9090
}
9191
docs_link(diag, lint);
9292
});

0 commit comments

Comments
 (0)