diff options
| author | Ralf Jung <post@ralfj.de> | 2022-07-05 17:38:46 -0400 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-07-09 07:27:29 -0400 |
| commit | ac265cdc19fe99b5909410893dd1583d6cb895fe (patch) | |
| tree | e3808875f4616db2cd84b500083f3a279cb10a43 /compiler/rustc_const_eval/src/interpret | |
| parent | 052651dd134c6016108c5fc50bfe4196012a6a8f (diff) | |
| download | rust-ac265cdc19fe99b5909410893dd1583d6cb895fe.tar.gz rust-ac265cdc19fe99b5909410893dd1583d6cb895fe.zip | |
review feedback
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/operand.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/operand.rs b/compiler/rustc_const_eval/src/interpret/operand.rs index c95ae4f6e7a..236849f5f9f 100644 --- a/compiler/rustc_const_eval/src/interpret/operand.rs +++ b/compiler/rustc_const_eval/src/interpret/operand.rs @@ -709,7 +709,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { Operand::Indirect(MemPlace::from_ptr(ptr.into())) } ConstValue::Scalar(x) => Operand::Immediate(tag_scalar(x)?.into()), - ConstValue::ZST => Operand::Immediate(Immediate::Uninit), + ConstValue::Zst => Operand::Immediate(Immediate::Uninit), ConstValue::Slice { data, start, end } => { // We rely on mutability being set correctly in `data` to prevent writes // where none should happen. |
