Skip to content

Commit

Permalink
Mark fn_to_numeric_cast lints as MaybeIncorrect
Browse files Browse the repository at this point in the history
At least for now so that `cargo fix --clippy` is not causing problems
with this lint.

cc rust-lang#3630, rust-lang#3896
  • Loading branch information
phansch committed Jul 31, 2019
1 parent d1b4fc9 commit 04ca58a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,7 @@ fn lint_fn_to_numeric_cast(
}
match cast_from.sty {
ty::FnDef(..) | ty::FnPtr(_) => {
let mut applicability = Applicability::MachineApplicable;
let mut applicability = Applicability::MaybeIncorrect;
let from_snippet = snippet_with_applicability(cx, cast_expr.span, "x", &mut applicability);

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

0 comments on commit 04ca58a

Please sign in to comment.