]> git.lizzy.rs Git - rust.git/commitdiff
fix recently added Retag statement
authorRalf Jung <post@ralfj.de>
Sun, 2 Dec 2018 11:24:51 +0000 (12:24 +0100)
committerRalf Jung <post@ralfj.de>
Mon, 3 Dec 2018 12:02:02 +0000 (13:02 +0100)
src/librustc_mir/shim.rs

index 04079319a787771e42f80ba6ad870716b12dd325..3a53cc6eaea71704f905fcd34a8db1a1434799ac 100644 (file)
@@ -229,7 +229,11 @@ fn build_drop_shim<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
             // Function arguments should be retagged
             mir.basic_blocks_mut()[START_BLOCK].statements.insert(0, Statement {
                 source_info,
-                kind: StatementKind::Retag { fn_entry: true, place: dropee_ptr.clone() },
+                kind: StatementKind::Retag {
+                    fn_entry: true,
+                    two_phase: false,
+                    place: dropee_ptr.clone(),
+                },
             });
             // We use raw ptr operations, better prepare the alias tracking for that
             mir.basic_blocks_mut()[START_BLOCK].statements.insert(1, Statement {