1 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 //! New recursive solver modeled on Chalk's recursive solver. Most of
12 //! the guts are broken up into modules; see the comments in those modules.
14 #![deny(bare_trait_objects)]
16 #![feature(crate_in_paths)]
17 #![feature(crate_visibility_modifier)]
18 #![feature(extern_prelude)]
19 #![feature(iterator_find_map)]
20 #![feature(in_band_lifetimes)]
22 #![recursion_limit="256"]
24 extern crate chalk_engine;
29 extern crate rustc_data_structures;
31 extern crate syntax_pos;
35 mod evaluate_obligation;
36 mod implied_outlives_bounds;
37 mod normalize_projection_ty;
38 mod normalize_erasing_regions;
42 use rustc::ty::query::Providers;
44 pub fn provide(p: &mut Providers) {
45 dropck_outlives::provide(p);
46 evaluate_obligation::provide(p);
47 implied_outlives_bounds::provide(p);
49 normalize_projection_ty::provide(p);
50 normalize_erasing_regions::provide(p);