Skip to content

Commit 5d04477

Browse files
committed
Auto merge of #152516 - nnethercote:mv-query-system-code-3, r=Zalathar
Move `rustc_query_system` code, part 3 Following on from #152419. r? @Zalathar
2 parents 3f808f2 + ed091aa commit 5d04477

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+807
-838
lines changed

Cargo.lock

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4093,7 +4093,6 @@ dependencies = [
40934093
"rustc_passes",
40944094
"rustc_privacy",
40954095
"rustc_query_impl",
4096-
"rustc_query_system",
40974096
"rustc_resolve",
40984097
"rustc_session",
40994098
"rustc_span",
@@ -4226,6 +4225,7 @@ dependencies = [
42264225
"bitflags",
42274226
"either",
42284227
"gsgdt",
4228+
"parking_lot",
42294229
"polonius-engine",
42304230
"rustc_abi",
42314231
"rustc_apfloat",
@@ -4512,22 +4512,17 @@ dependencies = [
45124512
name = "rustc_query_system"
45134513
version = "0.0.0"
45144514
dependencies = [
4515-
"parking_lot",
45164515
"rustc_abi",
45174516
"rustc_ast",
45184517
"rustc_data_structures",
45194518
"rustc_errors",
45204519
"rustc_feature",
4521-
"rustc_hashes",
45224520
"rustc_hir",
4523-
"rustc_index",
45244521
"rustc_macros",
45254522
"rustc_serialize",
45264523
"rustc_session",
45274524
"rustc_span",
4528-
"rustc_thread_pool",
45294525
"smallvec",
4530-
"tracing",
45314526
]
45324527

45334528
[[package]]

compiler/rustc_interface/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ rustc_parse = { path = "../rustc_parse" }
3535
rustc_passes = { path = "../rustc_passes" }
3636
rustc_privacy = { path = "../rustc_privacy" }
3737
rustc_query_impl = { path = "../rustc_query_impl" }
38-
rustc_query_system = { path = "../rustc_query_system" }
3938
rustc_resolve = { path = "../rustc_resolve" }
4039
rustc_session = { path = "../rustc_session" }
4140
rustc_span = { path = "../rustc_span" }

compiler/rustc_interface/src/callbacks.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@
1212
use std::fmt;
1313

1414
use rustc_errors::{DiagInner, TRACK_DIAGNOSTIC};
15-
use rustc_middle::dep_graph::{DepNodeExt, TaskDepsRef};
15+
use rustc_middle::dep_graph::dep_node::default_dep_kind_debug;
16+
use rustc_middle::dep_graph::{DepContext, DepKind, DepNode, DepNodeExt, TaskDepsRef};
1617
use rustc_middle::ty::tls;
1718
use rustc_query_impl::QueryCtxt;
18-
use rustc_query_system::dep_graph::dep_node::default_dep_kind_debug;
19-
use rustc_query_system::dep_graph::{DepContext, DepKind, DepNode};
2019

2120
fn track_span_parent(def_id: rustc_span::def_id::LocalDefId) {
2221
tls::with_context_opt(|icx| {
@@ -107,9 +106,9 @@ pub fn dep_node_debug(node: DepNode, f: &mut std::fmt::Formatter<'_>) -> std::fm
107106
pub fn setup_callbacks() {
108107
rustc_span::SPAN_TRACK.swap(&(track_span_parent as fn(_)));
109108
rustc_hir::def_id::DEF_ID_DEBUG.swap(&(def_id_debug as fn(_, &mut fmt::Formatter<'_>) -> _));
110-
rustc_query_system::dep_graph::dep_node::DEP_KIND_DEBUG
109+
rustc_middle::dep_graph::dep_node::DEP_KIND_DEBUG
111110
.swap(&(dep_kind_debug as fn(_, &mut fmt::Formatter<'_>) -> _));
112-
rustc_query_system::dep_graph::dep_node::DEP_NODE_DEBUG
111+
rustc_middle::dep_graph::dep_node::DEP_NODE_DEBUG
113112
.swap(&(dep_node_debug as fn(_, &mut fmt::Formatter<'_>) -> _));
114113
TRACK_DIAGNOSTIC.swap(&(track_diagnostic as _));
115114
}

compiler/rustc_middle/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ edition = "2024"
88
bitflags = "2.4.1"
99
either = "1.5.0"
1010
gsgdt = "0.1.2"
11+
parking_lot = "0.12"
1112
polonius-engine = "0.13.0"
1213
rustc_abi = { path = "../rustc_abi" }
1314
rustc_apfloat = "0.2.0"
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)