Uh oh!
There was an error while loading. Please reload this page.
Cleaned up num <-> str conv functions - #4957
Conversation
Removed hacky dependency on Round trait and generic infinity functions Removed generic-runtime-failure-depending-on-type behavior
Removed Round impl for integers
catamorphism
commented
Feb 15, 2013
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! |
Kimundi
commented
Feb 15, 2013
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
catamorphism
commented
Feb 15, 2013
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 Fixesrust-lang#4957
4957: Fix substs in resolve_value_path for ImplSelf r=flodiebold a=Speedy37 Fixesrust-lang#4953. This is the first fix I do in hir_ty, I hope I got it right :) Co-authored-by: Vincent Rouillé <vincent@speedy37.fr>
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.