Skip to content

Commit ef2b18a

Browse files
committed
fix recently added Retag statement
1 parent 005df5f commit ef2b18a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/librustc_mir/shim.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,11 @@ fn build_drop_shim<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
229229
// Function arguments should be retagged
230230
mir.basic_blocks_mut()[START_BLOCK].statements.insert(0, Statement {
231231
source_info,
232-
kind: StatementKind::Retag { fn_entry: true, place: dropee_ptr.clone() },
232+
kind: StatementKind::Retag {
233+
fn_entry: true,
234+
two_phase: false,
235+
place: dropee_ptr.clone(),
236+
},
233237
});
234238
// We use raw ptr operations, better prepare the alias tracking for that
235239
mir.basic_blocks_mut()[START_BLOCK].statements.insert(1, Statement {

0 commit comments

Comments
 (0)