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 {
68
68
}
69
69
}
70
70
71
- let maybe_uninit = MaybeUninitializedLocals :: new ( )
71
+ let maybe_uninit = MaybeUninitializedLocals
72
72
. iterate_to_fixpoint ( tcx, body, Some ( "mir_opt::copy_prop" ) )
73
73
. into_results_cursor ( body) ;
74
74
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ impl<'tcx> crate::MirPass<'tcx> for GVN {
145
145
// as this enables better optimizations. For each local use location, we mark it for storage removal
146
146
// only if it might be uninitialized at that point.
147
147
let storage_to_remove = if tcx. sess . emit_lifetime_markers ( ) {
148
- let maybe_uninit = MaybeUninitializedLocals :: new ( )
148
+ let maybe_uninit = MaybeUninitializedLocals
149
149
. iterate_to_fixpoint ( tcx, body, Some ( "mir_opt::gvn" ) )
150
150
. into_results_cursor ( body) ;
151
151
Original file line number Diff line number Diff line change @@ -413,12 +413,6 @@ impl StorageLiveLocals {
413
413
/// individual fields.
414
414
pub ( crate ) struct MaybeUninitializedLocals ;
415
415
416
- impl MaybeUninitializedLocals {
417
- pub ( crate ) fn new ( ) -> Self {
418
- Self { }
419
- }
420
- }
421
-
422
416
impl < ' tcx > Analysis < ' tcx > for MaybeUninitializedLocals {
423
417
type Domain = DenseBitSet < Local > ;
424
418
You can’t perform that action at this time.
0 commit comments