Skip to content

Commit a29772b

Browse files
committed
Remove DropAndReplace terminator
PR 107844 made DropAndReplace unused, let's remove it completely from the codebase.
1 parent e423746 commit a29772b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/intrinsics/mir.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
//! are no resume and abort terminators, and terminators that might unwind do not have any way to
228228
//! indicate the unwind block.
229229
//!
230-
//! - [`Goto`], [`Return`], [`Unreachable`], [`Drop`](Drop()), and [`DropAndReplace`] have associated functions.
230+
//! - [`Goto`], [`Return`], [`Unreachable`] and [`Drop`](Drop()) have associated functions.
231231
//! - `match some_int_operand` becomes a `SwitchInt`. Each arm should be `literal => basic_block`
232232
//! - The exception is the last arm, which must be `_ => basic_block` and corresponds to the
233233
//! otherwise branch.
@@ -259,7 +259,6 @@ define!("mir_return", fn Return() -> BasicBlock);
259259
define!("mir_goto", fn Goto(destination: BasicBlock) -> BasicBlock);
260260
define!("mir_unreachable", fn Unreachable() -> BasicBlock);
261261
define!("mir_drop", fn Drop<T>(place: T, goto: BasicBlock));
262-
define!("mir_drop_and_replace", fn DropAndReplace<T>(place: T, value: T, goto: BasicBlock));
263262
define!("mir_call", fn Call<T>(place: T, goto: BasicBlock, call: T));
264263
define!("mir_storage_live", fn StorageLive<T>(local: T));
265264
define!("mir_storage_dead", fn StorageDead<T>(local: T));

0 commit comments

Comments
 (0)