]> git.lizzy.rs Git - rust.git/blob - src/librustc_traits/lib.rs
Rollup merge of #68509 - GuillaumeGomez:clean-up-err-codes-e0223-e0225, r=Dylan-DPC
[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 #![feature(crate_visibility_modifier)]
5 #![feature(in_band_lifetimes)]
6 #![feature(nll)]
7 #![recursion_limit = "256"]
8
9 #[macro_use]
10 extern crate log;
11 #[macro_use]
12 extern crate rustc;
13
14 mod chalk_context;
15 mod dropck_outlives;
16 mod evaluate_obligation;
17 mod generic_types;
18 mod implied_outlives_bounds;
19 pub mod lowering;
20 mod normalize_erasing_regions;
21 mod normalize_projection_ty;
22 mod type_op;
23
24 use rustc::ty::query::Providers;
25
26 pub fn provide(p: &mut Providers<'_>) {
27     dropck_outlives::provide(p);
28     evaluate_obligation::provide(p);
29     implied_outlives_bounds::provide(p);
30     lowering::provide(p);
31     chalk_context::provide(p);
32     normalize_projection_ty::provide(p);
33     normalize_erasing_regions::provide(p);
34     type_op::provide(p);
35 }