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