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