Move rustc_query_system::cache to rustc_middle::traits.
This commit is contained in:
parent
f889772d65
commit
b29a9b6920
5 changed files with 3 additions and 3 deletions
|
|
@ -2,6 +2,7 @@
|
|||
//!
|
||||
//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/traits/resolution.html
|
||||
|
||||
pub mod cache;
|
||||
pub mod query;
|
||||
pub mod select;
|
||||
pub mod solve;
|
||||
|
|
|
|||
|
|
@ -5,12 +5,12 @@
|
|||
use rustc_errors::ErrorGuaranteed;
|
||||
use rustc_hir::def_id::DefId;
|
||||
use rustc_macros::{HashStable, TypeVisitable};
|
||||
use rustc_query_system::cache::Cache;
|
||||
use rustc_type_ir::solve::AliasBoundKind;
|
||||
|
||||
use self::EvaluationResult::*;
|
||||
use super::{SelectionError, SelectionResult};
|
||||
use crate::ty;
|
||||
use crate::traits::cache::Cache;
|
||||
|
||||
pub type SelectionCache<'tcx, ENV> =
|
||||
Cache<(ENV, ty::TraitPredicate<'tcx>), SelectionResult<'tcx, SelectionCandidate<'tcx>>>;
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@ use rustc_hir::lang_items::LangItem;
|
|||
use rustc_hir::limit::Limit;
|
||||
use rustc_hir::{self as hir, HirId, Node, TraitCandidate, find_attr};
|
||||
use rustc_index::IndexVec;
|
||||
use rustc_query_system::cache::WithDepNode;
|
||||
use rustc_query_system::dep_graph::DepNodeIndex;
|
||||
use rustc_query_system::ich::StableHashingContext;
|
||||
use rustc_serialize::opaque::{FileEncodeResult, FileEncoder};
|
||||
|
|
@ -71,6 +70,7 @@ use crate::query::plumbing::QuerySystem;
|
|||
use crate::query::{IntoQueryParam, LocalCrate, Providers, TyCtxtAt};
|
||||
use crate::thir::Thir;
|
||||
use crate::traits;
|
||||
use crate::traits::cache::WithDepNode;
|
||||
use crate::traits::solve::{
|
||||
self, CanonicalInput, ExternalConstraints, ExternalConstraintsData, PredefinedOpaques,
|
||||
QueryResult, inspect,
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
#![feature(min_specialization)]
|
||||
// tidy-alphabetical-end
|
||||
|
||||
pub mod cache;
|
||||
pub mod dep_graph;
|
||||
mod error;
|
||||
pub mod ich;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue