1
Fork 0

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.
This commit is contained in:
Ralf Jung 2022-07-04 11:46:10 -04:00
parent ca4e39400e
commit 874a130ca0
6 changed files with 12 additions and 21 deletions

View file

@ -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,
)?;