mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 09:23:31 +00:00
`rustc_borrowck` now only uses `rustc_traits` for one helper that it re-exports from `rustc_trait_selection`. Use the helper directly from `rustc_trait_selection`, and eliminate the dependency.
28 lines
768 B
Rust
28 lines
768 B
Rust
//! Queries that are independent from the main solver code.
|
|
|
|
// tidy-alphabetical-start
|
|
#![recursion_limit = "256"]
|
|
// tidy-alphabetical-end
|
|
|
|
mod codegen;
|
|
mod coroutine_witnesses;
|
|
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 fn provide(p: &mut Providers) {
|
|
dropck_outlives::provide(p);
|
|
evaluate_obligation::provide(p);
|
|
implied_outlives_bounds::provide(p);
|
|
normalize_projection_ty::provide(p);
|
|
normalize_erasing_regions::provide(p);
|
|
type_op::provide(p);
|
|
p.codegen_select_candidate = codegen::codegen_select_candidate;
|
|
p.coroutine_hidden_types = coroutine_witnesses::coroutine_hidden_types;
|
|
}
|