#![feature(box_syntax)]
#![feature(crate_visibility_modifier)]
#![feature(core_intrinsics)]
-#![feature(const_fn)]
#![feature(decl_macro)]
#![feature(drain_filter)]
#![feature(exhaustive_patterns)]
#![feature(range_is_empty)]
#![feature(stmt_expr_attributes)]
#![feature(trait_alias)]
-#![feature(matches_macro)]
+#![recursion_limit = "256"]
-#![recursion_limit="256"]
-
-#[macro_use] extern crate log;
-#[macro_use] extern crate rustc;
-#[macro_use] extern crate syntax;
+#[macro_use]
+extern crate log;
+#[macro_use]
+extern crate rustc;
mod borrow_check;
mod build;
+pub mod const_eval;
pub mod dataflow;
mod hair;
+pub mod interpret;
mod lints;
+pub mod monomorphize;
mod shim;
pub mod transform;
pub mod util;
-pub mod interpret;
-pub mod monomorphize;
-pub mod const_eval;
use rustc::ty::query::Providers;
pub fn provide(providers: &mut Providers<'_>) {
borrow_check::provide(providers);
+ const_eval::provide(providers);
shim::provide(providers);
transform::provide(providers);
monomorphize::partitioning::provide(providers);
- providers.const_eval = const_eval::const_eval_provider;
+ providers.const_eval_validated = const_eval::const_eval_validated_provider;
providers.const_eval_raw = const_eval::const_eval_raw_provider;
providers.check_match = hair::pattern::check_match;
providers.const_caller_location = const_eval::const_caller_location;