|
2 | 2 | //! generate the actual methods on tcx which find and execute the provider,
|
3 | 3 | //! manage the caches, and so forth.
|
4 | 4 |
|
5 |
| -use crate::rustc_middle::dep_graph::DepContext; |
6 |
| -use crate::rustc_middle::ty::TyEncoder; |
7 | 5 | use crate::QueryConfigRestored;
|
8 | 6 | use rustc_data_structures::stable_hasher::{Hash64, HashStable, StableHasher};
|
9 | 7 | use rustc_data_structures::sync::Lock;
|
10 | 8 | use rustc_data_structures::unord::UnordMap;
|
11 | 9 | use rustc_errors::DiagInner;
|
12 |
| - |
13 | 10 | use rustc_index::Idx;
|
| 11 | +use rustc_middle::bug; |
14 | 12 | use rustc_middle::dep_graph::dep_kinds;
|
15 | 13 | use rustc_middle::dep_graph::{
|
16 |
| - self, DepKind, DepKindStruct, DepNode, DepNodeIndex, SerializedDepNodeIndex, |
| 14 | + self, DepContext, DepKind, DepKindStruct, DepNode, DepNodeIndex, SerializedDepNodeIndex, |
17 | 15 | };
|
18 | 16 | use rustc_middle::query::on_disk_cache::AbsoluteBytePos;
|
19 | 17 | use rustc_middle::query::on_disk_cache::{CacheDecoder, CacheEncoder, EncodedDepNodeIndex};
|
20 | 18 | use rustc_middle::query::Key;
|
21 | 19 | use rustc_middle::ty::print::with_reduced_queries;
|
22 | 20 | use rustc_middle::ty::tls::{self, ImplicitCtxt};
|
23 |
| -use rustc_middle::ty::{self, TyCtxt}; |
| 21 | +use rustc_middle::ty::{self, TyCtxt, TyEncoder}; |
24 | 22 | use rustc_query_system::dep_graph::{DepNodeParams, HasDepContext};
|
25 | 23 | use rustc_query_system::ich::StableHashingContext;
|
26 | 24 | use rustc_query_system::query::{
|
@@ -783,6 +781,7 @@ macro_rules! define_queries {
|
783 | 781 | #[allow(nonstandard_style)]
|
784 | 782 | mod query_callbacks {
|
785 | 783 | use super::*;
|
| 784 | + use rustc_middle::bug; |
786 | 785 | use rustc_query_system::dep_graph::FingerprintStyle;
|
787 | 786 |
|
788 | 787 | // We use this for most things when incr. comp. is turned off.
|
@@ -851,7 +850,7 @@ macro_rules! define_queries {
|
851 | 850 | }
|
852 | 851 |
|
853 | 852 | pub fn query_callbacks<'tcx>(arena: &'tcx Arena<'tcx>) -> &'tcx [DepKindStruct<'tcx>] {
|
854 |
| - arena.alloc_from_iter(make_dep_kind_array!(query_callbacks)) |
| 853 | + arena.alloc_from_iter(rustc_middle::make_dep_kind_array!(query_callbacks)) |
855 | 854 | }
|
856 | 855 | }
|
857 | 856 | }
|
0 commit comments