about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/interpret/mod.rs
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-03-26 09:46:30 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-04-17 09:50:44 +0000
commit77fe9f0a7243d875c419d9e72ae3253db4f6e17a (patch)
tree137747d22c00177957ccb77703096462bffed9bd /compiler/rustc_const_eval/src/interpret/mod.rs
parent8b2a4f8b4323b6bdb2a0a8fa4e7aa206fc89ae0b (diff)
downloadrust-77fe9f0a7243d875c419d9e72ae3253db4f6e17a.tar.gz
rust-77fe9f0a7243d875c419d9e72ae3253db4f6e17a.zip
Validate before reporting interning errors.
validation produces much higher quality errors and already handles most of the cases
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/mod.rs')
-rw-r--r--compiler/rustc_const_eval/src/interpret/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/mod.rs b/compiler/rustc_const_eval/src/interpret/mod.rs
index 474d35b2aa3..7ede90ad13f 100644
--- a/compiler/rustc_const_eval/src/interpret/mod.rs
+++ b/compiler/rustc_const_eval/src/interpret/mod.rs
@@ -23,6 +23,7 @@ pub use rustc_middle::mir::interpret::*; // have all the `interpret` symbols in
 pub use self::eval_context::{format_interp_error, Frame, FrameInfo, InterpCx, StackPopCleanup};
 pub use self::intern::{
     intern_const_alloc_for_constprop, intern_const_alloc_recursive, HasStaticRootDefId, InternKind,
+    InternResult,
 };
 pub use self::machine::{compile_time_machine, AllocMap, Machine, MayLeak, StackPopJump};
 pub use self::memory::{AllocKind, AllocRef, AllocRefMut, FnVal, Memory, MemoryKind};