Skip to content

Commit

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

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

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

cc `@joshtriplett`
  • Loading branch information
GuillaumeGomez authored Oct 16, 2021
2 parents 7d6edd6 + e41bb97 commit a3b902a
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 a3b902a

Please sign in to comment.