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 coroutine_witnesses;
9mod dropck_outlives;
10mod evaluate_obligation;
11mod implied_outlives_bounds;
12mod normalize_erasing_regions;
13mod normalize_projection_ty;
14mod type_op;
15
16use rustc_middle::query::Providers;
17pub use rustc_trait_selection::traits::query::type_op::ascribe_user_type::type_op_ascribe_user_type_with_span;
18pub use type_op::type_op_prove_predicate_with_cause;
19
20pub fn provide(p: &mut Providers) {
21    dropck_outlives::provide(p);
22    evaluate_obligation::provide(p);
23    implied_outlives_bounds::provide(p);
24    normalize_projection_ty::provide(p);
25    normalize_erasing_regions::provide(p);
26    type_op::provide(p);
27    p.codegen_select_candidate = codegen::codegen_select_candidate;
28    p.coroutine_hidden_types = coroutine_witnesses::coroutine_hidden_types;
29}