Skip to content

Commit

Permalink
Auto merge of rust-lang#12554 - Kobzol:assigning-clones-unspecified, …
Browse files Browse the repository at this point in the history
…r=blyxyas

Change applicability of `assigning_clones` to `Unspecified`

Before we deal with rust-lang/rust-clippy#12473 and the borrow checker errors, I think that it would be better to downgrade this lint, since it can break code.

changelog: Change the applicability of `assigning_clones` to `Unspecified`

r? `@blyxyas`
  • Loading branch information
bors committed Mar 25, 2024
2 parents b1b7352 + dafb7f6 commit ca6a647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/assigning_clones.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ fn is_ok_to_suggest<'tcx>(cx: &LateContext<'tcx>, lhs: &Expr<'tcx>, call: &CallC

fn suggest<'tcx>(cx: &LateContext<'tcx>, assign_expr: &Expr<'tcx>, lhs: &Expr<'tcx>, call: &CallCandidate<'tcx>) {
span_lint_and_then(cx, ASSIGNING_CLONES, assign_expr.span, call.message(), |diag| {
let mut applicability = Applicability::MachineApplicable;
let mut applicability = Applicability::Unspecified;

diag.span_suggestion(
assign_expr.span,
Expand Down

0 comments on commit ca6a647

Please sign in to comment.