Rollup merge of #152758 - cjgillot:noinit-box, r=RalfJung

Remove ShallowInitBox.

All uses of this were removed by https://github.com/rust-lang/rust/pull/148190
Split from https://github.com/rust-lang/rust/pull/147862

r? @RalfJung
This commit is contained in:
Stuart Cook
2026-02-18 17:29:44 +11:00
committed by GitHub
-1
View File
@@ -194,7 +194,6 @@ fn check_rvalue<'tcx>(
))
}
},
Rvalue::ShallowInitBox(_, _) => Ok(()),
Rvalue::UnaryOp(_, operand) => {
let ty = operand.ty(body, cx.tcx);
if ty.is_integral() || ty.is_bool() {