Skip to content

Commit 5f18119

Browse files
committed
Remove MaybeUninitializedLocals's new
1 parent 72ea78d commit 5f18119

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

compiler/rustc_mir_transform/src/copy_prop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

compiler/rustc_mir_transform/src/gvn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

compiler/rustc_mir_transform/src/ssa.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,12 +401,6 @@ impl StorageLiveLocals {
401401
/// individual fields.
402402
pub(crate) struct MaybeUninitializedLocals;
403403

404-
impl MaybeUninitializedLocals {
405-
pub(crate) fn new() -> Self {
406-
Self {}
407-
}
408-
}
409-
410404
impl<'tcx> Analysis<'tcx> for MaybeUninitializedLocals {
411405
type Domain = DenseBitSet<Local>;
412406

0 commit comments

Comments
 (0)