We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9c1346 commit a71b808Copy full SHA for a71b808
compiler/rustc_mir_transform/src/check_alignment.rs
@@ -111,7 +111,7 @@ fn split_block(
111
112
// Drain every statement after this one and move the current terminator to a new basic block
113
let new_block = BasicBlockData {
114
- statements: block_data.statements.drain(location.statement_index..).collect(),
+ statements: block_data.statements.split_off(location.statement_index),
115
terminator: block_data.terminator.take(),
116
is_cleanup: block_data.is_cleanup,
117
};
0 commit comments