1
Fork 0

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:
Ryan Lopopolo 2021-10-03 20:59:54 -07:00
parent 4479cb82e5
commit e41bb97c25
No known key found for this signature in database
GPG key ID: 46047D739B6AE0B1

View file

@ -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")]