Skip to content

core: Audit num module for int/uint#22600

Merged
bors merged 1 commit into
rust-lang:masterfrom
brson:num
Mar 3, 2015
Merged

core: Audit num module for int/uint#22600
bors merged 1 commit into
rust-lang:masterfrom
brson:num

Conversation

@brson

@brson brson commented Feb 20, 2015

Copy link
Copy Markdown
Contributor
  • 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

Comment thread src/libcore/num/mod.rs

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Gankra commented Feb 20, 2015

Copy link
Copy Markdown
Contributor

@bors r+ dce44

@Gankra

Gankra commented Feb 20, 2015

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member

(needs rebase)

@pnkfelix

Copy link
Copy Markdown
Contributor

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

brson commented Mar 3, 2015

Copy link
Copy Markdown
Contributor Author

@bors: r=Gankro 76e9

@bors

bors commented Mar 3, 2015

Copy link
Copy Markdown
Collaborator

⌛ 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 commented Mar 3, 2015

Copy link
Copy Markdown
Collaborator

@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