]> git.lizzy.rs Git - rust.git/blob - src/librustc_traits/lib.rs
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / librustc_traits / lib.rs
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.
4 //
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.
10
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.
13
14 #![feature(crate_visibility_modifier)]
15 #![feature(in_band_lifetimes)]
16 #![feature(nll)]
17
18 #![recursion_limit="256"]
19
20 extern crate chalk_engine;
21 #[macro_use]
22 extern crate log;
23 #[macro_use]
24 extern crate rustc;
25 extern crate rustc_data_structures;
26 extern crate syntax;
27 extern crate syntax_pos;
28 extern crate smallvec;
29
30 mod chalk_context;
31 mod dropck_outlives;
32 mod evaluate_obligation;
33 mod implied_outlives_bounds;
34 mod normalize_projection_ty;
35 mod normalize_erasing_regions;
36 pub mod lowering;
37 mod type_op;
38
39 use rustc::ty::query::Providers;
40
41 pub fn provide(p: &mut Providers) {
42     dropck_outlives::provide(p);
43     evaluate_obligation::provide(p);
44     implied_outlives_bounds::provide(p);
45     lowering::provide(p);
46     normalize_projection_ty::provide(p);
47     normalize_erasing_regions::provide(p);
48     type_op::provide(p);
49 }