]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_traits/src/lib.rs
Rollup merge of #97508 - JohnTitor:more-strict-placeholder-dyn-obj, r=pnkfelix
[rust.git] / compiler / rustc_traits / src / 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(let_else)]
5 #![recursion_limit = "256"]
6
7 #[macro_use]
8 extern crate tracing;
9 #[macro_use]
10 extern crate rustc_middle;
11
12 mod chalk;
13 mod dropck_outlives;
14 mod evaluate_obligation;
15 mod implied_outlives_bounds;
16 mod normalize_erasing_regions;
17 mod normalize_projection_ty;
18 mod type_op;
19
20 pub use type_op::{type_op_ascribe_user_type_with_span, type_op_prove_predicate_with_cause};
21
22 use rustc_middle::ty::query::Providers;
23
24 pub fn provide(p: &mut Providers) {
25     dropck_outlives::provide(p);
26     evaluate_obligation::provide(p);
27     implied_outlives_bounds::provide(p);
28     chalk::provide(p);
29     normalize_projection_ty::provide(p);
30     normalize_erasing_regions::provide(p);
31     type_op::provide(p);
32 }