Document the index used in AggregateKind::Adt
This commit is contained in:
parent
c6140970f5
commit
48a7a1f5e9
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue