Skip to content

Commit 5d061d7

Browse files
committed
Auto merge of #4315 - phansch:fn_to_numeric_cast_applicability, r=flip1995
Mark `fn_to_numeric_cast` lints as MaybeIncorrect At least for now so that `cargo fix --clippy` is not causing problems with this lint. See #3896 for the remaining problems with the suggestions of this lint. changelog: none cc #3630, #3896
2 parents 01f2b53 + 04ca58a commit 5d061d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ fn lint_fn_to_numeric_cast(
12511251
}
12521252
match cast_from.sty {
12531253
ty::FnDef(..) | ty::FnPtr(_) => {
1254-
let mut applicability = Applicability::MachineApplicable;
1254+
let mut applicability = Applicability::MaybeIncorrect;
12551255
let from_snippet = snippet_with_applicability(cx, cast_expr.span, "x", &mut applicability);
12561256

12571257
let to_nbits = int_ty_to_nbits(cast_to, cx.tcx);

0 commit comments

Comments
 (0)