]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_traits/src/lib.rs
Rollup merge of #105265 - aDotInTheVoid:sum-product-on-unimplemented, r=estebank
[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 #![feature(let_chains)]
7 #![recursion_limit = "256"]
8
9 #[macro_use]
10 extern crate tracing;
11 #[macro_use]
12 extern crate rustc_middle;
13
14 mod chalk;
15 mod codegen;
16 mod dropck_outlives;
17 mod evaluate_obligation;
18 mod implied_outlives_bounds;
19 mod normalize_erasing_regions;
20 mod normalize_projection_ty;
21 mod type_op;
22
23 pub use type_op::{type_op_ascribe_user_type_with_span, type_op_prove_predicate_with_cause};
24
25 use rustc_middle::ty::query::Providers;
26
27 pub fn provide(p: &mut Providers) {
28     dropck_outlives::provide(p);
29     evaluate_obligation::provide(p);
30     implied_outlives_bounds::provide(p);
31     chalk::provide(p);
32     normalize_projection_ty::provide(p);
33     normalize_erasing_regions::provide(p);
34     type_op::provide(p);
35     p.codegen_select_candidate = codegen::codegen_select_candidate;
36 }