]> git.lizzy.rs Git - rust.git/blob - src/librustc_traits/lib.rs
Refactor mod/check (part vii)
[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_in_paths)]
15 #![feature(crate_visibility_modifier)]
16 #![feature(extern_prelude)]
17 #![feature(iterator_find_map)]
18 #![feature(in_band_lifetimes)]
19 #![cfg_attr(not(stage0), feature(nll))]
20
21 #![recursion_limit="256"]
22
23 extern crate chalk_engine;
24 #[macro_use]
25 extern crate log;
26 #[macro_use]
27 extern crate rustc;
28 extern crate rustc_data_structures;
29 extern crate syntax;
30 extern crate syntax_pos;
31
32 mod chalk_context;
33 mod dropck_outlives;
34 mod evaluate_obligation;
35 mod implied_outlives_bounds;
36 mod normalize_projection_ty;
37 mod normalize_erasing_regions;
38 pub mod lowering;
39 mod type_op;
40
41 use rustc::ty::query::Providers;
42
43 pub fn provide(p: &mut Providers) {
44     dropck_outlives::provide(p);
45     evaluate_obligation::provide(p);
46     implied_outlives_bounds::provide(p);
47     lowering::provide(p);
48     normalize_projection_ty::provide(p);
49     normalize_erasing_regions::provide(p);
50     type_op::provide(p);
51 }