-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Num cleanup #14694
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
Num cleanup #14694
Conversation
cc @bjz |
impl_integer_for_uint!(u16, test_integer_u16) | ||
impl_integer_for_uint!(u32, test_integer_u32) | ||
impl_integer_for_uint!(u64, test_integer_u64) | ||
impl_integer_for_uint!(uint, test_integer_uint) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this last line isn't terminated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! It should be fixed now.
Looks fine to me. |
@@ -975,7 +967,7 @@ impl Div<BigInt, BigInt> for BigInt { | |||
#[inline] | |||
fn div(&self, other: &BigInt) -> BigInt { | |||
let (q, _) = self.div_rem(other); | |||
return q; | |||
q |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These may also be expressed as self.div_rem(other).val0()
.
Could you squash the last commit into one of the first two? Other than that I think this is good to go! |
Done! |
Closes #14611 (std: Remove the as_utf16_p functions) Closes #14694 (Num cleanup) Closes #14760 (Add --color to test binary options) Closes #14763 (std: Move dynamic_lib from std::unstable to std) Closes #14766 (Add test for issue #13446) Closes #14769 (collections: Add missing Default impls) Closes #14773 (General nits) Closes #14776 (rustdoc: Correctly classify enums/typedefs)
No description provided.