Introduce Rvalue::ShallowInitBox
This commit is contained in:
parent
308dffd25c
commit
c38da2e0a3
19 changed files with 68 additions and 11 deletions
|
@ -523,6 +523,8 @@ impl<'tcx> Validator<'_, 'tcx> {
|
|||
NullOp::AlignOf => {}
|
||||
},
|
||||
|
||||
Rvalue::ShallowInitBox(_, _) => return Err(Unpromotable),
|
||||
|
||||
Rvalue::UnaryOp(op, operand) => {
|
||||
match op {
|
||||
// These operations can never fail.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue