Skip to content
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

core: Audit num module for int/uint #22600

Merged
merged 1 commit into from
Mar 3, 2015
Merged

core: Audit num module for int/uint #22600

merged 1 commit into from
Mar 3, 2015

Conversation

brson
Copy link
Contributor

@brson brson commented Feb 20, 2015

  • count_ones/zeros, trailing_ones/zeros return u32, not usize
  • rotate_left/right take u32, not usize
  • RADIX, MANTISSA_DIGITS, DIGITS, BITS, BYTES are u32, not usize

Doesn't touch pow because there's another PR for it.

cc #22240

r? @gankro

from_str_radix_int_impl! { i8 }
from_str_radix_int_impl! { i16 }
from_str_radix_int_impl! { i32 }
from_str_radix_int_impl! { i64 }
from_str_radix_int_impl! { uint }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this cause a hard disappearance (in contrast to your other changes)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think not, but am not sure. Isn't an impl for usize also an impl for uint?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That... sounds believable.

@Gankra
Copy link
Contributor

Gankra commented Feb 20, 2015

@bors r+ dce44

@Gankra
Copy link
Contributor

Gankra commented Feb 20, 2015

Have a great day ☀️

Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 21, 2015
 * count_ones/zeros, trailing_ones/zeros return u32, not usize
* rotate_left/right take u32, not usize
* RADIX, MANTISSA_DIGITS, DIGITS, BITS, BYTES are u32, not usize

Doesn't touch pow because there's another PR for it.

cc rust-lang#22240

r? @gankro
@Manishearth
Copy link
Member

(needs rebase)

@pnkfelix
Copy link
Member

cc #22240

* count_ones/zeros, trailing_ones/zeros return u32, not usize
* rotate_left/right take u32, not usize
* RADIX, MANTISSA_DIGITS, DIGITS, BITS, BYTES are u32, not usize

Doesn't touch pow because there's another PR for it.

[breaking-change]
@brson
Copy link
Contributor Author

brson commented Mar 3, 2015

@bors: r=Gankro 76e9

@bors
Copy link
Contributor

bors commented Mar 3, 2015

⌛ Testing commit 76e9fa6 with merge 5457eab...

bors added a commit that referenced this pull request Mar 3, 2015
* count_ones/zeros, trailing_ones/zeros return u32, not usize
* rotate_left/right take u32, not usize
* RADIX, MANTISSA_DIGITS, DIGITS, BITS, BYTES are u32, not usize

Doesn't touch pow because there's another PR for it.

cc #22240

r? @gankro
@bors bors merged commit 76e9fa6 into rust-lang:master Mar 3, 2015
apasel422 added a commit to contain-rs/trie that referenced this pull request Mar 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants