mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user