Skip to content

Make Int inherit from Ord. #18795

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

Merged
merged 1 commit into from
Nov 10, 2014
Merged

Make Int inherit from Ord. #18795

merged 1 commit into from
Nov 10, 2014

Conversation

haberman
Copy link
Contributor

@haberman haberman commented Nov 9, 2014

Previously Int inherited from PartialOrd (via Primitive)
but not Ord. But integers have a total order, so
inheriting from Ord is appropriate. Fixes #18776.

Previously Int inherited from PartialOrd (via Primitive)
but not Ord.  But integers have a total order, so
inheriting from Ord is appropriate. Fixes #18776.
@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aturon (or someone else) soon.

@emberian
Copy link
Member

emberian commented Nov 9, 2014

Thanks!

bors added a commit that referenced this pull request Nov 10, 2014
Previously Int inherited from PartialOrd (via Primitive)
but not Ord.  But integers have a total order, so
inheriting from Ord is appropriate. Fixes #18776.
@bors bors closed this Nov 10, 2014
@bors bors merged commit a7533b8 into rust-lang:master Nov 10, 2014
@hastebrot
Copy link

@haberman

I'm new to Rust development, what does "r+" mean?

There are some notes in the wiki about usage of "bors":
https://github.com/rust-lang/rust/wiki/Note-bors-usage

lnicola pushed a commit to lnicola/rust that referenced this pull request Jan 7, 2025
Fix render of literal to be rendered in codeblock
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.

Int and Integer traits should imply "Ord"
6 participants