@@ -455,9 +455,9 @@ impl std::ops::Deref for InhabitedPredicate {
455455
456456/// The representation options as annotated by the user.
457457///
458- /// NOTE: This does not include less common/unstable representations such as `#[repr(simd )]`
459- /// or the compiler internal `#[repr(linear)]`. Similarly, enum discriminant representations
460- /// are encoded in [`Variant::discriminant`] and [`Discriminator`] instead.
458+ /// NOTE: This does not include the compiler internal `#[repr(linear )]`. Similarly, enum
459+ /// discriminant representations are encoded in [`Variant:: discriminant`] and [`Discriminator`]
460+ /// instead.
461461#[ derive( Debug , Default , Clone , PartialEq , Eq ) ]
462462#[ derive( Serialize , Deserialize ) ]
463463pub struct ReprOptions {
@@ -478,6 +478,8 @@ pub enum ReprAlgorithm {
478478 Rust ,
479479 /// The C layout algorithm as enforced by `repr(C)`.
480480 C ,
481+ /// The SIMD vector layout algorithm as enforced by the unstable `repr(simd)`.
482+ Simd ,
481483}
482484
483485/// Describes modifiers to the alignment and packing of the corresponding type.
@@ -563,9 +565,9 @@ impl ReprOptions {
563565 /// Whether this representation options guarantee a fixed
564566 /// field ordering for the type.
565567 ///
566- /// Since we don't support `repr(simd )` or `repr(linear )` yet, this is
567- /// the case if it's either `repr(C)` or an explicit discriminant type for
568- /// an enum with fields (if it doesn't have fields, this obviously doesn't matter anyway).
568+ /// Since we don't support `repr(linear )` yet, this is the case if it's either `repr(C )` or an
569+ /// explicit discriminant type for an enum with fields (if it doesn't have fields, this
570+ /// obviously doesn't matter anyway).
569571 ///
570572 /// Cf. <https://doc.rust-lang.org/reference/type-layout.html#r-layout.repr.c.struct>
571573 /// and <https://doc.rust-lang.org/reference/type-layout.html#r-layout.repr.primitive.adt>.
0 commit comments