Skip to content

Commit ca6a647

Browse files
committed
Auto merge of #12554 - Kobzol:assigning-clones-unspecified, r=blyxyas
Change applicability of `assigning_clones` to `Unspecified` Before we deal with #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`
2 parents b1b7352 + dafb7f6 commit ca6a647

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/assigning_clones.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ fn is_ok_to_suggest<'tcx>(cx: &LateContext<'tcx>, lhs: &Expr<'tcx>, call: &CallC
207207

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

212212
diag.span_suggestion(
213213
assign_expr.span,

0 commit comments

Comments
 (0)