Skip to content

Commit e41bb97

Browse files
committed
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.
1 parent 4479cb8 commit e41bb97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/cmp.rs

+1
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ pub struct AssertParamIsEq<T: Eq + ?Sized> {
323323
/// ```
324324
#[derive(Clone, Copy, PartialEq, Debug, Hash)]
325325
#[stable(feature = "rust1", since = "1.0.0")]
326+
#[repr(i8)]
326327
pub enum Ordering {
327328
/// An ordering where a compared value is less than another.
328329
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)