File tree Expand file tree Collapse file tree 3 files changed +2
-8
lines changed
compiler/rustc_mir_transform/src Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ impl<'tcx> crate::MirPass<'tcx> for CopyProp {
6868 }
6969 }
7070
71- let maybe_uninit = MaybeUninitializedLocals :: new ( )
71+ let maybe_uninit = MaybeUninitializedLocals
7272 . iterate_to_fixpoint ( tcx, body, Some ( "mir_opt::copy_prop" ) )
7373 . into_results_cursor ( body) ;
7474
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ impl<'tcx> crate::MirPass<'tcx> for GVN {
147147 // as this enables better optimizations. For each local use location, we mark it for storage removal
148148 // only if it might be uninitialized at that point.
149149 let storage_to_remove = if tcx. sess . emit_lifetime_markers ( ) {
150- let maybe_uninit = MaybeUninitializedLocals :: new ( )
150+ let maybe_uninit = MaybeUninitializedLocals
151151 . iterate_to_fixpoint ( tcx, body, Some ( "mir_opt::gvn" ) )
152152 . into_results_cursor ( body) ;
153153
Original file line number Diff line number Diff line change @@ -401,12 +401,6 @@ impl StorageLiveLocals {
401401/// individual fields.
402402pub ( crate ) struct MaybeUninitializedLocals ;
403403
404- impl MaybeUninitializedLocals {
405- pub ( crate ) fn new ( ) -> Self {
406- Self { }
407- }
408- }
409-
410404impl < ' tcx > Analysis < ' tcx > for MaybeUninitializedLocals {
411405 type Domain = DenseBitSet < Local > ;
412406
You can’t perform that action at this time.
0 commit comments