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 @@ -147,7 +147,7 @@ impl<'tcx> crate::MirPass<'tcx> for GVN {
147
147
// as this enables better optimizations. For each local use location, we mark it for storage removal
148
148
// only if it might be uninitialized at that point.
149
149
let storage_to_remove = if tcx. sess . emit_lifetime_markers ( ) {
150
- let maybe_uninit = MaybeUninitializedLocals :: new ( )
150
+ let maybe_uninit = MaybeUninitializedLocals
151
151
. iterate_to_fixpoint ( tcx, body, Some ( "mir_opt::gvn" ) )
152
152
. into_results_cursor ( body) ;
153
153
Original file line number Diff line number Diff line change @@ -401,12 +401,6 @@ impl StorageLiveLocals {
401
401
/// individual fields.
402
402
pub ( crate ) struct MaybeUninitializedLocals ;
403
403
404
- impl MaybeUninitializedLocals {
405
- pub ( crate ) fn new ( ) -> Self {
406
- Self { }
407
- }
408
- }
409
-
410
404
impl < ' tcx > Analysis < ' tcx > for MaybeUninitializedLocals {
411
405
type Domain = DenseBitSet < Local > ;
412
406
You can’t perform that action at this time.
0 commit comments