-
Notifications
You must be signed in to change notification settings - Fork 1.7k
add lint infallible_try_from #14813
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
base: master
Are you sure you want to change the base?
add lint infallible_try_from #14813
Conversation
This comment has been minimized.
This comment has been minimized.
r? @llogiq Written at the workshop during RustWeek |
Looks for `TryFrom` implementations with uninhabited error types and suggests to implement `From` instead.
d4eee17
to
5c0bd96
Compare
This is a good start. The code is still failing dogfood, where clippy lints itself. Looking at the suggestions, you should change the "default lint description" in the lint definition block, and use a |
Should be ready to go now |
Looks for
TryFrom
implementations with uninhabited error types and suggests to implementFrom
instead.Fixes #2144
changelog: Added [
infallible_try_from
] tonursery