mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-03 09:32:42 +00:00
remove InterpError::map_err_info That would let us replace the backtrace attached to this interpreter error, which we don't want to allow. We also don't need it, all uses of `map_err_info` can be covered by a `inspect_err_info` instead if we reorganize the helper methods around debug-printing interpreter errors a bit.
49 lines
1.4 KiB
Rust
49 lines
1.4 KiB
Rust
//! An interpreter for MIR used in CTFE and by miri
|
|
|
|
mod call;
|
|
mod cast;
|
|
mod discriminant;
|
|
mod eval_context;
|
|
mod intern;
|
|
mod intrinsics;
|
|
mod machine;
|
|
mod memory;
|
|
mod operand;
|
|
mod operator;
|
|
mod place;
|
|
mod projection;
|
|
mod stack;
|
|
mod step;
|
|
mod traits;
|
|
mod util;
|
|
mod validity;
|
|
mod visitor;
|
|
|
|
#[doc(no_inline)]
|
|
pub use rustc_middle::mir::interpret::*; // have all the `interpret` symbols in one place: here
|
|
|
|
pub use self::call::FnArg;
|
|
pub use self::eval_context::InterpCx;
|
|
use self::eval_context::{from_known_layout, mir_assign_valid_types};
|
|
pub use self::intern::{
|
|
HasStaticRootDefId, InternError, InternKind, intern_const_alloc_for_constprop,
|
|
intern_const_alloc_recursive,
|
|
};
|
|
pub use self::machine::{
|
|
AllocMap, Machine, MayLeak, RetagMode, ReturnAction, compile_time_machine,
|
|
};
|
|
pub use self::memory::{AllocInfo, AllocKind, AllocRef, AllocRefMut, FnVal, Memory, MemoryKind};
|
|
use self::operand::Operand;
|
|
pub use self::operand::{ImmTy, Immediate, OpTy};
|
|
pub use self::operator::AtomicRmwOp;
|
|
pub use self::place::{MPlaceTy, MemPlaceMeta, PlaceTy, Writeable};
|
|
use self::place::{MemPlace, Place};
|
|
pub use self::projection::{OffsetMode, Projectable};
|
|
pub use self::stack::{Frame, FrameInfo, LocalState, ReturnContinuation};
|
|
pub use self::util::EnteredTraceSpan;
|
|
pub(crate) use self::util::{
|
|
create_static_alloc, ensure_monomorphic_enough, type_implements_dyn_trait,
|
|
};
|
|
pub use self::validity::{CtfeValidationMode, RangeSet, RefTracking};
|
|
pub use self::visitor::ValueVisitor;
|