-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Cleaned up num <-> str conv functions #4957
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
Conversation
Removed hacky dependency on Round trait and generic infinity functions Removed generic-runtime-failure-depending-on-type behavior
Removed Round impl for integers
Looks good except for those predicates that seem to be unnecessary as required trait methods. If you remove those (or tell me the reason I've overlooked that they need to be in the trait) I'll approve it -- thanks! |
The idea was to be able to both query if a type supports one of the special values, and if yes, whether a value of the type is equal to one of them. But looking over it again, the |
Moved `is_*` predicates into standalone functions
Thanks! |
Moved them into own module and made them not depend on an Round trait impl for integers and generic math functions that can fail on integers any more.
New Lint: Iter nth zero Check for the use of `iter.nth(0)` and encourage `iter.next()` instead as it is more readable changelog: add new lint when `iter.nth(0)` is used Fixes rust-lang#4957
Moved them into own module and made them not depend on an Round trait impl for integers and generic math functions that can fail on integers any more.