Skip to content

Commit 9614da2

Browse files
authored
Rollup merge of #89507 - lopopolo:lopopolo/ordering-repr-i8, r=joshtriplett
Add `#[repr(i8)]` to `Ordering` Followup to #89491 to allow `Ordering` to auto-derive `AsRepr` once the proposal to add `AsRepr` (#81642) lands. cc ``@joshtriplett``
2 parents 4e89811 + e41bb97 commit 9614da2

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)