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

Audit core borrow, cmp, default, and intrinsics modules for proper integer usage #22485

Merged
merged 4 commits into from
Feb 19, 2015

Conversation

pnkfelix
Copy link
Member

cc #22240

* cast 3-valued `core::cmp::Ordering` to `i32`, not `int`.

* use `isize`/`usize` in the impl macros.
* Use `i32` (`u32`) in doc examples, not `int` (`u32`).

* Switch impl macros to use `isize`/`usize` rather than `int`/`uint`.
…usize`.

Likewise, `fn offset` takes an `isize`.
@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@nikomatsakis
Copy link
Contributor

@bors r+ fc0f6e8 rollup

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Feb 19, 2015
@bors bors merged commit fc0f6e8 into rust-lang:master Feb 19, 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.

4 participants