]> git.lizzy.rs Git - rust.git/blob - src/librustc_traits/lib.rs
Rollup merge of #61720 - alexcrichton:libstd-cfg-if-dep, r=sfackler
[rust.git] / src / librustc_traits / lib.rs
1 //! New recursive solver modeled on Chalk's recursive solver. Most of
2 //! the guts are broken up into modules; see the comments in those modules.
3
4 #![deny(rust_2018_idioms)]
5 #![deny(internal)]
6 #![deny(unused_lifetimes)]
7
8 #![feature(crate_visibility_modifier)]
9 #![feature(in_band_lifetimes)]
10 #![feature(nll)]
11
12 #![recursion_limit="256"]
13
14 #[macro_use]
15 extern crate log;
16 #[macro_use]
17 extern crate rustc;
18
19 mod chalk_context;
20 mod dropck_outlives;
21 mod evaluate_obligation;
22 mod implied_outlives_bounds;
23 mod normalize_projection_ty;
24 mod normalize_erasing_regions;
25 pub mod lowering;
26 mod generic_types;
27 mod type_op;
28
29 use rustc::ty::query::Providers;
30
31 pub fn provide(p: &mut Providers<'_>) {
32     dropck_outlives::provide(p);
33     evaluate_obligation::provide(p);
34     implied_outlives_bounds::provide(p);
35     lowering::provide(p);
36     chalk_context::provide(p);
37     normalize_projection_ty::provide(p);
38     normalize_erasing_regions::provide(p);
39     type_op::provide(p);
40 }