Skip to content

Commit 04ca58a

Browse files
committed
Mark fn_to_numeric_cast lints as MaybeIncorrect
At least for now so that `cargo fix --clippy` is not causing problems with this lint. cc #3630, #3896
1 parent d1b4fc9 commit 04ca58a

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)