]> git.lizzy.rs Git - rust.git/blob - src/librustc_traits/lib.rs
Auto merge of #48523 - varkor:generics-ty-generalisations, 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(iterator_find_map)]
16
17 #[macro_use]
18 extern crate log;
19 #[macro_use]
20 extern crate rustc;
21 extern crate rustc_data_structures;
22 extern crate syntax;
23 extern crate syntax_pos;
24
25 mod dropck_outlives;
26 mod evaluate_obligation;
27 mod normalize_projection_ty;
28 mod normalize_erasing_regions;
29 mod util;
30 pub mod lowering;
31
32 use rustc::ty::maps::Providers;
33
34 pub fn provide(p: &mut Providers) {
35     *p = Providers {
36         dropck_outlives: dropck_outlives::dropck_outlives,
37         adt_dtorck_constraint: dropck_outlives::adt_dtorck_constraint,
38         normalize_projection_ty: normalize_projection_ty::normalize_projection_ty,
39         normalize_ty_after_erasing_regions:
40             normalize_erasing_regions::normalize_ty_after_erasing_regions,
41         program_clauses_for: lowering::program_clauses_for,
42         program_clauses_for_env: lowering::program_clauses_for_env,
43         evaluate_obligation: evaluate_obligation::evaluate_obligation,
44         ..*p
45     };
46 }