2023-07-03 15:19:08 +00:00
|
|
|
//! Queries that are independent from the main solver code.
|
2018-02-25 10:58:54 -05:00
|
|
|
|
2018-03-03 06:22:19 +01:00
|
|
|
#![recursion_limit = "256"]
|
|
|
|
|
2018-02-25 10:58:54 -05:00
|
|
|
#[macro_use]
|
2020-08-13 23:05:01 -07:00
|
|
|
extern crate tracing;
|
2018-02-21 11:24:13 -05:00
|
|
|
#[macro_use]
|
2020-03-29 16:41:09 +02:00
|
|
|
extern crate rustc_middle;
|
2018-02-25 10:58:54 -05:00
|
|
|
|
2022-12-08 05:58:30 +00:00
|
|
|
mod codegen;
|
2018-02-21 10:55:16 -05:00
|
|
|
mod dropck_outlives;
|
2018-03-08 18:30:37 -06:00
|
|
|
mod evaluate_obligation;
|
2018-07-04 13:07:45 -05:00
|
|
|
mod implied_outlives_bounds;
|
2018-11-23 22:43:59 +01:00
|
|
|
mod normalize_erasing_regions;
|
|
|
|
mod normalize_projection_ty;
|
2018-06-27 06:53:23 -04:00
|
|
|
mod type_op;
|
2018-02-25 10:58:54 -05:00
|
|
|
|
2023-05-25 18:25:44 +00:00
|
|
|
pub use rustc_trait_selection::traits::query::type_op::ascribe_user_type::type_op_ascribe_user_type_with_span;
|
|
|
|
pub use type_op::type_op_prove_predicate_with_cause;
|
2021-08-15 14:49:36 +02:00
|
|
|
|
2023-05-15 06:24:45 +02:00
|
|
|
use rustc_middle::query::Providers;
|
2018-02-25 10:58:54 -05:00
|
|
|
|
2020-07-05 23:00:14 +03:00
|
|
|
pub fn provide(p: &mut Providers) {
|
2018-06-27 09:42:00 -04:00
|
|
|
dropck_outlives::provide(p);
|
|
|
|
evaluate_obligation::provide(p);
|
2018-07-04 13:07:45 -05:00
|
|
|
implied_outlives_bounds::provide(p);
|
2018-06-27 09:42:00 -04:00
|
|
|
normalize_projection_ty::provide(p);
|
|
|
|
normalize_erasing_regions::provide(p);
|
|
|
|
type_op::provide(p);
|
2022-12-08 05:16:39 +00:00
|
|
|
p.codegen_select_candidate = codegen::codegen_select_candidate;
|
2018-02-25 10:58:54 -05:00
|
|
|
}
|