rustc_traits/lib.rs
1//! Queries that are independent from the main solver code.
2
3// tidy-alphabetical-start
4#![recursion_limit = "256"]
5// tidy-alphabetical-end
6
7mod codegen;
8mod dropck_outlives;
9mod evaluate_obligation;
10mod implied_outlives_bounds;
11mod normalize_erasing_regions;
12mod normalize_projection_ty;
13mod type_op;
14
15use rustc_middle::query::Providers;
16pub use rustc_trait_selection::traits::query::type_op::ascribe_user_type::type_op_ascribe_user_type_with_span;
17pub use type_op::type_op_prove_predicate_with_cause;
18
19pub fn provide(p: &mut Providers) {
20 dropck_outlives::provide(p);
21 evaluate_obligation::provide(p);
22 implied_outlives_bounds::provide(p);
23 normalize_projection_ty::provide(p);
24 normalize_erasing_regions::provide(p);
25 type_op::provide(p);
26 p.codegen_select_candidate = codegen::codegen_select_candidate;
27}