Skip to content

Commit e9288e7

Browse files
committed
Remove last remnants of rustc_query_system.
At this point module `ich` is the only thing left.
1 parent 47ed452 commit e9288e7

39 files changed

+34
-88
lines changed

Cargo.lock

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3640,7 +3640,6 @@ dependencies = [
36403640
"rustc_macros",
36413641
"rustc_metadata",
36423642
"rustc_middle",
3643-
"rustc_query_system",
36443643
"rustc_sanitizers",
36453644
"rustc_session",
36463645
"rustc_span",
@@ -4243,7 +4242,6 @@ dependencies = [
42434242
"rustc_index",
42444243
"rustc_lint_defs",
42454244
"rustc_macros",
4246-
"rustc_query_system",
42474245
"rustc_serialize",
42484246
"rustc_session",
42494247
"rustc_span",
@@ -4507,20 +4505,6 @@ dependencies = [
45074505
"tracing",
45084506
]
45094507

4510-
[[package]]
4511-
name = "rustc_query_system"
4512-
version = "0.0.0"
4513-
dependencies = [
4514-
"rustc_abi",
4515-
"rustc_ast",
4516-
"rustc_data_structures",
4517-
"rustc_feature",
4518-
"rustc_hir",
4519-
"rustc_session",
4520-
"rustc_span",
4521-
"smallvec",
4522-
]
4523-
45244508
[[package]]
45254509
name = "rustc_resolve"
45264510
version = "0.0.0"

compiler/rustc_codegen_llvm/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ rustc_llvm = { path = "../rustc_llvm" }
3131
rustc_macros = { path = "../rustc_macros" }
3232
rustc_metadata = { path = "../rustc_metadata" }
3333
rustc_middle = { path = "../rustc_middle" }
34-
rustc_query_system = { path = "../rustc_query_system" }
3534
rustc_sanitizers = { path = "../rustc_sanitizers" }
3635
rustc_session = { path = "../rustc_session" }
3736
rustc_span = { path = "../rustc_span" }

compiler/rustc_macros/src/hash_stable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ fn hash_stable_derive_with_mode(
9696

9797
let context: syn::Type = match mode {
9898
HashStableMode::Normal => {
99-
parse_quote!(::rustc_query_system::ich::StableHashingContext<'__ctx>)
99+
parse_quote!(::rustc_middle::ich::StableHashingContext<'__ctx>)
100100
}
101101
HashStableMode::Generic | HashStableMode::NoContext => parse_quote!(__CTX),
102102
};

compiler/rustc_middle/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ rustc_hir_pretty = { path = "../rustc_hir_pretty" }
2626
rustc_index = { path = "../rustc_index" }
2727
rustc_lint_defs = { path = "../rustc_lint_defs" }
2828
rustc_macros = { path = "../rustc_macros" }
29-
rustc_query_system = { path = "../rustc_query_system" }
3029
rustc_serialize = { path = "../rustc_serialize" }
3130
rustc_session = { path = "../rustc_session" }
3231
rustc_span = { path = "../rustc_span" }

compiler/rustc_middle/src/dep_graph/dep_node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ use rustc_data_structures::stable_hasher::{HashStable, StableHasher, StableOrd,
6363
use rustc_hir::def_id::DefId;
6464
use rustc_hir::definitions::DefPathHash;
6565
use rustc_macros::{Decodable, Encodable};
66-
use rustc_query_system::ich::StableHashingContext;
6766
use rustc_span::Symbol;
6867

6968
use super::{FingerprintStyle, SerializedDepNodeIndex};
69+
use crate::ich::StableHashingContext;
7070
use crate::mir::mono::MonoItem;
7171
use crate::ty::{TyCtxt, tls};
7272

compiler/rustc_middle/src/dep_graph/graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use rustc_data_structures::{assert_matches, outline};
1515
use rustc_errors::DiagInner;
1616
use rustc_index::IndexVec;
1717
use rustc_macros::{Decodable, Encodable};
18-
use rustc_query_system::ich::StableHashingContext;
1918
use rustc_serialize::opaque::{FileEncodeResult, FileEncoder};
2019
use rustc_session::Session;
2120
use tracing::{debug, instrument};
@@ -26,6 +25,7 @@ use super::query::DepGraphQuery;
2625
use super::serialized::{GraphEncoder, SerializedDepGraph, SerializedDepNodeIndex};
2726
use super::{DepKind, DepNode, HasDepContext, WorkProductId, read_deps, with_deps};
2827
use crate::dep_graph::edges::EdgesVec;
28+
use crate::ich::StableHashingContext;
2929
use crate::ty::TyCtxt;
3030
use crate::verify_ich::incremental_verify_ich;
3131

File renamed without changes.

compiler/rustc_query_system/src/ich/impls_syntax.rs renamed to compiler/rustc_middle/src/ich/impls_syntax.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use rustc_span::{SourceFile, Symbol, sym};
66
use smallvec::SmallVec;
77
use {rustc_ast as ast, rustc_hir as hir};
88

9-
use crate::ich::StableHashingContext;
9+
use super::StableHashingContext;
1010

1111
impl<'a> HashStable<StableHashingContext<'a>> for ast::NodeId {
1212
#[inline]
File renamed without changes.

compiler/rustc_middle/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ pub mod arena;
7272
pub mod error;
7373
pub mod hir;
7474
pub mod hooks;
75+
pub mod ich;
7576
pub mod infer;
7677
pub mod lint;
7778
pub mod metadata;

0 commit comments

Comments
 (0)