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.
2 parents 8051f01 + 8e266d9 commit 9972ebfCopy full SHA for 9972ebf
compiler/rustc_mir_transform/src/simplify.rs
@@ -82,7 +82,7 @@ pub(super) fn simplify_cfg<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
82
remove_dead_blocks(body);
83
84
// FIXME: Should probably be moved into some kind of pass manager
85
- body.basic_blocks_mut().raw.shrink_to_fit();
+ body.basic_blocks.as_mut_preserves_cfg().shrink_to_fit();
86
}
87
88
impl<'tcx> crate::MirPass<'tcx> for SimplifyCfg {
0 commit comments