about summary refs log tree commit diff
path: root/src/librustc_mir/interpret
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2018-08-09 11:56:53 -0400
committerNiko Matsakis <niko@alum.mit.edu>2018-08-24 13:27:38 -0400
commit56506cfa25a8f4c47b1e093cdc576a62b1eb08a5 (patch)
tree7812bedfbd3924ef3221e1dc8cbd0d2c94c45d31 /src/librustc_mir/interpret
parent2d1d3fef6205276e0123dea96cc346d1da7df6d0 (diff)
downloadrust-56506cfa25a8f4c47b1e093cdc576a62b1eb08a5.tar.gz
rust-56506cfa25a8f4c47b1e093cdc576a62b1eb08a5.zip
support user-given types in adts
Diffstat (limited to 'src/librustc_mir/interpret')
-rw-r--r--src/librustc_mir/interpret/step.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/interpret/step.rs b/src/librustc_mir/interpret/step.rs
index f39a5ee3e4e..db556db2417 100644
--- a/src/librustc_mir/interpret/step.rs
+++ b/src/librustc_mir/interpret/step.rs
@@ -208,7 +208,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M> {
 
             Aggregate(ref kind, ref operands) => {
                 let (dest, active_field_index) = match **kind {
-                    mir::AggregateKind::Adt(adt_def, variant_index, _, active_field_index) => {
+                    mir::AggregateKind::Adt(adt_def, variant_index, _, _, active_field_index) => {
                         self.write_discriminant_value(variant_index, dest)?;
                         if adt_def.is_enum() {
                             (self.place_downcast(dest, variant_index)?, active_field_index)