Skip to content

Disallow fn_to_numeric_cast_any once merged upstream #2616

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
michaelsproul opened this issue Sep 23, 2021 · 2 comments
Closed

Disallow fn_to_numeric_cast_any once merged upstream #2616

michaelsproul opened this issue Sep 23, 2021 · 2 comments
Labels

Comments

@michaelsproul
Copy link
Member

Description

I've authored a Clippy lint to detect a case of bugs that we should enable once it's available in rustc stable: rust-lang/rust-clippy#7705

Optimistically it might be available in Rust 1.57.0 on Dec 2nd/3rd

@michaelsproul michaelsproul changed the title Disallow fn_to_numeric_cast_any once merged upstream Disallow fn_cast once merged upstream Sep 29, 2021
@michaelsproul michaelsproul changed the title Disallow fn_cast once merged upstream Disallow fn_to_numeric_cast_any once merged upstream Oct 18, 2021
@michaelsproul
Copy link
Member Author

I think the PR got merged in time for Rust 1.57.0. It's in Nightly at the moment: https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_any

@michaelsproul
Copy link
Member Author

Ah, looks like it might be 1.58.0 (January)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant