Skip to content

Commit

Permalink
Rollup merge of #89507 - lopopolo:lopopolo/ordering-repr-i8, r=joshtr…
Browse files Browse the repository at this point in the history
…iplett

Add `#[repr(i8)]` to `Ordering`

Followup to #89491 to allow `Ordering` to auto-derive `AsRepr` once the proposal to add `AsRepr` (#81642) lands.

cc ``@joshtriplett``
  • Loading branch information
JohnTitor authored Oct 16, 2021
2 parents 4e89811 + e41bb97 commit 9614da2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ pub struct AssertParamIsEq<T: Eq + ?Sized> {
/// ```
#[derive(Clone, Copy, PartialEq, Debug, Hash)]
#[stable(feature = "rust1", since = "1.0.0")]
#[repr(i8)]
pub enum Ordering {
/// An ordering where a compared value is less than another.
#[stable(feature = "rust1", since = "1.0.0")]
Expand Down

0 comments on commit 9614da2

Please sign in to comment.