Skip to content

Commit

Permalink
Add #[repr(i8)] to Ordering
Browse files Browse the repository at this point in the history
Followup to rust-lang#89491 to allow `Ordering` to auto-derive `AsRepr` once
the proposal to add `AsRepr` (rust-lang#81642) lands.
  • Loading branch information
lopopolo committed Oct 4, 2021
1 parent 4479cb8 commit e41bb97
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 e41bb97

Please sign in to comment.