make sure we are checking the size of the right thing
This commit is contained in:
parent
410385dfd0
commit
e619b85776
1 changed files with 1 additions and 1 deletions
|
|
@ -578,7 +578,7 @@ impl InterpError<'_> {
|
|||
pub fn allocates(&self) -> bool {
|
||||
match self {
|
||||
// Zero-sized boxes do not allocate.
|
||||
InterpError::MachineStop(b) => mem::size_of_val(&**b) > 0,
|
||||
InterpError::MachineStop(b) => mem::size_of_val::<dyn MachineStopType>(&**b) > 0,
|
||||
InterpError::Unsupported(UnsupportedOpInfo::Unsupported(_))
|
||||
| InterpError::UndefinedBehavior(UndefinedBehaviorInfo::ValidationFailure(_))
|
||||
| InterpError::UndefinedBehavior(UndefinedBehaviorInfo::Ub(_))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue