You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// (so converting the tag to the discriminant can require sign extension).
1593
1593
Direct,
1594
1594
1595
-
/// Niche (values invalid for a type) encoding the discriminant:
1596
-
/// Discriminant and variant index coincide.
1595
+
/// Niche (values invalid for a type) encoding the discriminant.
1596
+
/// Note that for this encoding, the discriminant and variant index of each variant coincide!
1597
+
/// (This gets checked, for example, in [codegen_ssa](https://github.com/rust-lang/rust/blob/df32e15c56f582eb2bdde07711af6271f2ae660b/compiler/rustc_codegen_ssa/src/mir/operand.rs#L485).)
1598
+
///
1597
1599
/// The variant `untagged_variant` contains a niche at an arbitrary
1598
-
/// offset (field `tag_field` of the enum), which for a variant with
0 commit comments