2016-04-07 06:56:07 -05:00
|
|
|
#![feature(
|
|
|
|
btree_range,
|
2016-12-07 22:30:37 -06:00
|
|
|
cell_extras,
|
2016-04-07 06:56:07 -05:00
|
|
|
collections,
|
|
|
|
collections_bound,
|
2016-06-01 10:05:20 -05:00
|
|
|
pub_restricted,
|
2016-12-07 22:30:37 -06:00
|
|
|
rustc_private,
|
2016-04-07 06:56:07 -05:00
|
|
|
)]
|
2015-11-21 21:20:06 -06:00
|
|
|
|
2016-03-17 06:32:00 -05:00
|
|
|
// From rustc.
|
2016-12-07 22:30:37 -06:00
|
|
|
#[macro_use]
|
|
|
|
extern crate log;
|
|
|
|
extern crate log_settings;
|
|
|
|
#[macro_use]
|
|
|
|
extern crate rustc;
|
2016-06-30 22:33:24 -05:00
|
|
|
extern crate rustc_borrowck;
|
2016-12-07 22:30:37 -06:00
|
|
|
extern crate rustc_const_math;
|
2016-06-11 13:38:28 -05:00
|
|
|
extern crate rustc_data_structures;
|
2015-11-21 21:20:06 -06:00
|
|
|
extern crate rustc_mir;
|
|
|
|
extern crate syntax;
|
|
|
|
|
2016-03-17 06:32:00 -05:00
|
|
|
// From crates.io.
|
|
|
|
extern crate byteorder;
|
|
|
|
|
2016-12-07 22:30:37 -06:00
|
|
|
mod cast;
|
2016-03-14 22:48:00 -05:00
|
|
|
mod error;
|
2016-12-07 22:30:37 -06:00
|
|
|
mod eval_context;
|
2016-12-07 22:58:48 -06:00
|
|
|
mod lvalue;
|
2016-03-05 00:48:23 -06:00
|
|
|
mod memory;
|
2016-12-10 18:23:07 -06:00
|
|
|
mod operator;
|
2016-12-07 22:30:37 -06:00
|
|
|
mod step;
|
|
|
|
mod terminator;
|
|
|
|
mod value;
|
|
|
|
mod vtable;
|
|
|
|
|
2016-06-10 06:01:51 -05:00
|
|
|
pub use error::{
|
|
|
|
EvalError,
|
|
|
|
EvalResult,
|
|
|
|
};
|
|
|
|
|
2016-12-07 22:30:37 -06:00
|
|
|
pub use eval_context::{
|
2016-06-10 09:20:17 -05:00
|
|
|
EvalContext,
|
2016-06-10 06:01:51 -05:00
|
|
|
Frame,
|
2016-11-26 19:54:19 -06:00
|
|
|
ResourceLimits,
|
|
|
|
StackPopCleanup,
|
|
|
|
eval_main,
|
|
|
|
run_mir_passes,
|
2016-06-10 06:01:51 -05:00
|
|
|
};
|
|
|
|
|
2016-12-07 22:58:48 -06:00
|
|
|
pub use lvalue::{
|
|
|
|
Lvalue,
|
|
|
|
LvalueExtra,
|
|
|
|
};
|
|
|
|
|
2016-06-30 04:29:25 -05:00
|
|
|
pub use memory::{
|
2016-12-10 18:23:07 -06:00
|
|
|
AllocId,
|
2016-06-30 04:29:25 -05:00
|
|
|
Memory,
|
|
|
|
Pointer,
|
|
|
|
};
|
2016-10-20 06:10:22 -05:00
|
|
|
|
2016-12-10 18:23:07 -06:00
|
|
|
pub use value::{
|
2016-10-20 06:10:22 -05:00
|
|
|
PrimVal,
|
|
|
|
PrimValKind,
|
2016-12-21 19:15:03 -06:00
|
|
|
Value,
|
2016-10-20 06:10:22 -05:00
|
|
|
};
|