-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Use discriminant_value intrinsic for derive(PartialOrd) #24270
Merged
Merged
Commits on Apr 10, 2015
-
Implement
discriminant_value
intrinsicImplements an intrinsic for extracting the value of the discriminant enum variant values. For non-enum types, this returns zero, otherwise it returns the value we use for discriminant comparisons. This means that enum types that do not have a discriminant will also work in this arrangement. This is (at least part of) the work on Issue rust-lang#24263
Configuration menu - View commit details
-
Copy full SHA for 41dd355 - Browse repository at this point
Copy the full SHA 41dd355View commit details -
Configuration menu - View commit details
-
Copy full SHA for 800c5f8 - Browse repository at this point
Copy the full SHA 800c5f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea27391 - Browse repository at this point
Copy the full SHA ea27391View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6118795 - Browse repository at this point
Copy the full SHA 6118795View commit details -
Configuration menu - View commit details
-
Copy full SHA for c44d40e - Browse repository at this point
Copy the full SHA c44d40eView commit details -
Configuration menu - View commit details
-
Copy full SHA for afb7acf - Browse repository at this point
Copy the full SHA afb7acfView commit details -
Incorporate repr-attr into deriving(PartialOrd) to avoid truncation e…
…rrors. remove out of date fixme.
Configuration menu - View commit details
-
Copy full SHA for 781fc90 - Browse repository at this point
Copy the full SHA 781fc90View commit details -
Configuration menu - View commit details
-
Copy full SHA for 47016f9 - Browse repository at this point
Copy the full SHA 47016f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 847a897 - Browse repository at this point
Copy the full SHA 847a897View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05aaad1 - Browse repository at this point
Copy the full SHA 05aaad1View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.