about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/interpret
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-02-25 08:27:09 +0000
committerbors <bors@rust-lang.org>2021-02-25 08:27:09 +0000
commit89d32eb1ea44b3d739feb3c2a77adbba1e39b8e6 (patch)
tree05d3f4244e6a7a1dd2e886dd1ac86300705c5986 /compiler/rustc_mir/src/interpret
parent63bacf14cd06f67171546670f22d8af509c29027 (diff)
parentd496bfc1615b15946b291d9d305616e1b381c4a4 (diff)
downloadrust-89d32eb1ea44b3d739feb3c2a77adbba1e39b8e6.tar.gz
rust-89d32eb1ea44b3d739feb3c2a77adbba1e39b8e6.zip
Auto merge of #82338 - RalfJung:interp-error-allocs, r=oli-obk
all InterpError allocate now, so adjust alloc-error-check

Cc https://github.com/rust-lang/rust/pull/82116#discussion_r578310770
r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_mir/src/interpret')
-rw-r--r--compiler/rustc_mir/src/interpret/intern.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/compiler/rustc_mir/src/interpret/intern.rs b/compiler/rustc_mir/src/interpret/intern.rs
index 59438661cac..95464da145c 100644
--- a/compiler/rustc_mir/src/interpret/intern.rs
+++ b/compiler/rustc_mir/src/interpret/intern.rs
@@ -352,14 +352,6 @@ where
                         error
                     ),
                 );
-                // Some errors shouldn't come up because creating them causes
-                // an allocation, which we should avoid. When that happens,
-                // dedicated error variants should be introduced instead.
-                assert!(
-                    !error.kind().allocates(),
-                    "interning encountered allocating error: {}",
-                    error
-                );
             }
         }
     }