Reduce size of InterpErrorInfo to 8 bytes

This commit is contained in:
Tomasz Miąsko
2021-02-14 00:00:00 +00:00
parent ee88f46bb5
commit e190f0d974
7 changed files with 47 additions and 24 deletions

View File

@@ -466,7 +466,7 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
// an allocation, which we should avoid. When that happens,
// dedicated error variants should be introduced instead.
assert!(
!error.kind.allocates(),
!error.kind().allocates(),
"const-prop encountered allocating error: {}",
error
);