diff options
| author | Ralf Jung <post@ralfj.de> | 2022-07-04 11:46:10 -0400 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-07-13 10:22:59 -0400 |
| commit | 874a130ca01eb8a915b3ba0898aaeff35578758a (patch) | |
| tree | 2c4b4bfb74a5d962c01c305cdc20c43ee389cc50 /compiler/rustc_const_eval/src/interpret/eval_context.rs | |
| parent | ca4e39400ef33198e2715973d1c67a1d3cee15e7 (diff) | |
| download | rust-874a130ca01eb8a915b3ba0898aaeff35578758a.tar.gz rust-874a130ca01eb8a915b3ba0898aaeff35578758a.zip | |
get rid of MemPlaceMeta::Poison
MPlaceTy::dangling still exists, but now it is only called in places that actually conceptually allocate something new, so that's fine.
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/eval_context.rs')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/eval_context.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/eval_context.rs b/compiler/rustc_const_eval/src/interpret/eval_context.rs index 2e47cf89210..bacf5d5a59f 100644 --- a/compiler/rustc_const_eval/src/interpret/eval_context.rs +++ b/compiler/rustc_const_eval/src/interpret/eval_context.rs @@ -987,7 +987,7 @@ impl<'a, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> std::fmt::Debug " by {} ref {:?}:", match mplace.meta { MemPlaceMeta::Meta(meta) => format!(" meta({:?})", meta), - MemPlaceMeta::Poison | MemPlaceMeta::None => String::new(), + MemPlaceMeta::None => String::new(), }, mplace.ptr, )?; |
