]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_traits/src/lib.rs
Auto merge of #103185 - chenyukang:yukang/fix-span-next-point, r=davidtwco
[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 #![deny(rustc::untranslatable_diagnostic)]
5 #![deny(rustc::diagnostic_outside_of_impl)]
6 #![recursion_limit = "256"]
7
8 #[macro_use]
9 extern crate tracing;
10 #[macro_use]
11 extern crate rustc_middle;
12
13 mod chalk;
14 mod dropck_outlives;
15 mod evaluate_obligation;
16 mod implied_outlives_bounds;
17 mod normalize_erasing_regions;
18 mod normalize_projection_ty;
19 mod type_op;
20
21 pub use type_op::{type_op_ascribe_user_type_with_span, type_op_prove_predicate_with_cause};
22
23 use rustc_middle::ty::query::Providers;
24
25 pub fn provide(p: &mut Providers) {
26     dropck_outlives::provide(p);
27     evaluate_obligation::provide(p);
28     implied_outlives_bounds::provide(p);
29     chalk::provide(p);
30     normalize_projection_ty::provide(p);
31     normalize_erasing_regions::provide(p);
32     type_op::provide(p);
33 }