Add #[repr(i8)]
to Ordering
Followup to #89491 to allow `Ordering` to auto-derive `AsRepr` once the proposal to add `AsRepr` (#81642) lands.
This commit is contained in:
parent
4479cb82e5
commit
e41bb97c25
1 changed files with 1 additions and 0 deletions
|
@ -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")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue