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.
new_blocks
1 parent de70e59 commit ac9e3c4Copy full SHA for ac9e3c4
compiler/rustc_mir_transform/src/add_call_guards.rs
@@ -82,7 +82,7 @@ impl<'tcx> crate::MirPass<'tcx> for AddCallGuards {
82
}
83
84
// We need a place to store the new blocks generated
85
- let mut new_blocks = Vec::new();
+ let mut new_blocks = Vec::with_capacity(work.len());
86
87
let cur_len = body.basic_blocks.len();
88
let mut new_block = |source_info: SourceInfo, is_cleanup: bool, target: BasicBlock| {
0 commit comments