rust/compiler/rustc_traits/src/lib.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
857 B
Rust
Raw Normal View History

2023-07-03 15:19:08 +00:00
//! Queries that are independent from the main solver code.
// tidy-alphabetical-start
2018-03-03 05:22:19 +00:00
#![recursion_limit = "256"]
#![warn(unreachable_pub)]
// tidy-alphabetical-end
2018-03-03 05:22:19 +00:00
mod codegen;
mod dropck_outlives;
mod evaluate_obligation;
mod implied_outlives_bounds;
mod normalize_erasing_regions;
mod normalize_projection_ty;
mod type_op;
use rustc_middle::query::Providers;
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;
pub fn provide(p: &mut Providers) {
2018-06-27 13:42:00 +00:00
dropck_outlives::provide(p);
evaluate_obligation::provide(p);
implied_outlives_bounds::provide(p);
2018-06-27 13:42:00 +00:00
normalize_projection_ty::provide(p);
normalize_erasing_regions::provide(p);
type_op::provide(p);
p.codegen_select_candidate = codegen::codegen_select_candidate;
}