about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authornils <48135649+Nilstrieb@users.noreply.github.com>2023-03-21 13:00:25 +0100
committerGitHub <noreply@github.com>2023-03-21 13:00:25 +0100
commitb2e48edded0955ed95c1824e8ec7ab48694c7f16 (patch)
tree0d5afa66916cfdbd3da1e8a6a563a799c327527f /compiler/rustc_middle/src
parent15000ec607134ee6df9fd0b29b7317d64266d021 (diff)
parentf404f33c2197c534cf2468ea7b929e73c9b5d4b7 (diff)
downloadrust-b2e48edded0955ed95c1824e8ec7ab48694c7f16.tar.gz
rust-b2e48edded0955ed95c1824e8ec7ab48694c7f16.zip
Rollup merge of #109390 - cbeuw:aggregate-lit, r=oli-obk
Custom MIR: Support aggregate expressions

Add support for tuple, array and ADT expressions in custom mir

r? `````@oli-obk````` or `````@tmiasko````` or `````@JakobDegen`````
Diffstat (limited to 'compiler/rustc_middle/src')
-rw-r--r--compiler/rustc_middle/src/mir/syntax.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/mir/syntax.rs b/compiler/rustc_middle/src/mir/syntax.rs
index b16b6616415..a702a6b9ee1 100644
--- a/compiler/rustc_middle/src/mir/syntax.rs
+++ b/compiler/rustc_middle/src/mir/syntax.rs
@@ -1165,7 +1165,7 @@ pub enum AggregateKind<'tcx> {
     Tuple,
 
     /// The second field is the variant index. It's equal to 0 for struct
-    /// and union expressions. The fourth field is
+    /// and union expressions. The last field is the
     /// 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`