Validate before reporting interning errors.

validation produces much higher quality errors and already handles most of the cases
This commit is contained in:
Oli Scherer
2024-03-26 09:46:30 +00:00
parent 8b2a4f8b43
commit 77fe9f0a72
18 changed files with 253 additions and 513 deletions

View File

@@ -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};