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 @@ -156,7 +156,7 @@ impl<'tcx> crate::MirPass<'tcx> for GVN {
156156 // as this enables better optimizations. For each local use location, we mark it for storage removal
157157 // only if it might be uninitialized at that point.
158158 let storage_to_remove = if tcx. sess . emit_lifetime_markers ( ) {
159- let maybe_uninit = MaybeUninitializedLocals :: new ( )
159+ let maybe_uninit = MaybeUninitializedLocals
160160 . iterate_to_fixpoint ( tcx, body, Some ( "mir_opt::gvn" ) )
161161 . into_results_cursor ( body) ;
162162
Original file line number Diff line number Diff line change @@ -399,12 +399,6 @@ impl StorageLiveLocals {
399399/// individual fields.
400400pub ( crate ) struct MaybeUninitializedLocals ;
401401
402- impl MaybeUninitializedLocals {
403- pub ( crate ) fn new ( ) -> Self {
404- Self { }
405- }
406- }
407-
408402impl < ' tcx > Analysis < ' tcx > for MaybeUninitializedLocals {
409403 type Domain = DenseBitSet < Local > ;
410404
You can’t perform that action at this time.
0 commit comments