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
This commit is contained in:
parent
d1b4fc9853
commit
04ca58a691
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue