Document the index used in AggregateKind::Adt
This commit is contained in:
parent
c6140970f5
commit
48a7a1f5e9
@ -1515,8 +1515,8 @@ pub enum AggregateKind<'tcx> {
|
||||
Array(Ty<'tcx>),
|
||||
Tuple,
|
||||
|
||||
/// The second field is variant number (discriminant), it's equal
|
||||
/// to 0 for struct and union expressions. The fourth field is
|
||||
/// The second field is the variant index. It's equal to 0 for struct
|
||||
/// and union expressions. The fourth field is
|
||||
/// active field number and is present only for union expressions
|
||||
/// -- e.g. for a union expression `SomeUnion { c: .. }`, the
|
||||
/// active field index would identity the field `c`
|
||||
|
Loading…
Reference in New Issue
Block a user