65 lines
839 B
Rust
Raw Normal View History

2016-04-07 05:56:07 -06:00
#![feature(
2017-01-16 18:45:30 -08:00
i128_type,
rustc_private,
2016-04-07 05:56:07 -06:00
)]
// From rustc.
#[macro_use]
extern crate log;
extern crate log_settings;
#[macro_use]
extern crate rustc;
extern crate rustc_const_math;
2016-06-11 12:38:28 -06:00
extern crate rustc_data_structures;
extern crate syntax;
// From crates.io.
extern crate byteorder;
mod cast;
mod const_eval;
2016-03-14 21:48:00 -06:00
mod error;
mod eval_context;
mod lvalue;
2016-03-05 00:48:23 -06:00
mod memory;
2016-12-10 16:23:07 -08:00
mod operator;
mod step;
mod terminator;
2017-02-10 02:28:51 -08:00
mod traits;
mod value;
pub use error::{
EvalError,
EvalResult,
};
pub use eval_context::{
EvalContext,
Frame,
2016-11-26 17:54:19 -08:00
ResourceLimits,
StackPopCleanup,
eval_main,
};
pub use lvalue::{
Lvalue,
LvalueExtra,
};
pub use memory::{
2016-12-10 16:23:07 -08:00
AllocId,
Memory,
2017-07-04 13:16:29 +02:00
MemoryPointer,
};
2016-12-10 16:23:07 -08:00
pub use value::{
PrimVal,
PrimValKind,
2016-12-21 17:15:03 -08:00
Value,
Pointer,
};
pub use const_eval::{
eval_body_as_integer,
};