8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 410385d commit e619b85Copy full SHA for e619b85
src/librustc/mir/interpret/error.rs
@@ -578,7 +578,7 @@ impl InterpError<'_> {
578
pub fn allocates(&self) -> bool {
579
match self {
580
// Zero-sized boxes do not allocate.
581
- InterpError::MachineStop(b) => mem::size_of_val(&**b) > 0,
+ InterpError::MachineStop(b) => mem::size_of_val::<dyn MachineStopType>(&**b) > 0,
582
InterpError::Unsupported(UnsupportedOpInfo::Unsupported(_))
583
| InterpError::UndefinedBehavior(UndefinedBehaviorInfo::ValidationFailure(_))
584
| InterpError::UndefinedBehavior(UndefinedBehaviorInfo::Ub(_))
0 commit comments