Skip to content
/ rust Public
forked from rust-lang/rust

Commit 573aa9f

Browse files
committed
Remove extern crate rustc_middle from rustc_query_impl.
1 parent d49d4ae commit 573aa9f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

compiler/rustc_query_impl/src/lib.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
#![allow(rustc::potential_query_instability, unused_parens)]
99
#![allow(internal_features)]
1010

11-
#[macro_use]
12-
extern crate rustc_middle;
13-
1411
use crate::plumbing::{__rust_begin_short_backtrace, encode_all_query_results, try_mark_green};
1512
use crate::profiling_support::QueryKeyStringCache;
1613
use field_offset::offset_of;
@@ -222,4 +219,4 @@ pub fn query_system<'tcx>(
222219
}
223220
}
224221

225-
rustc_query_append! { define_queries! }
222+
rustc_middle::rustc_query_append! { define_queries! }

compiler/rustc_query_impl/src/plumbing.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ use rustc_data_structures::stable_hasher::{Hash64, HashStable, StableHasher};
77
use rustc_data_structures::sync::Lock;
88
use rustc_data_structures::unord::UnordMap;
99
use rustc_errors::DiagInner;
10-
1110
use rustc_index::Idx;
11+
use rustc_middle::bug;
1212
use rustc_middle::dep_graph::dep_kinds;
1313
use rustc_middle::dep_graph::{
1414
self, DepContext, DepKind, DepKindStruct, DepNode, DepNodeIndex, SerializedDepNodeIndex,
@@ -781,6 +781,7 @@ macro_rules! define_queries {
781781
#[allow(nonstandard_style)]
782782
mod query_callbacks {
783783
use super::*;
784+
use rustc_middle::bug;
784785
use rustc_query_system::dep_graph::FingerprintStyle;
785786

786787
// We use this for most things when incr. comp. is turned off.
@@ -849,7 +850,7 @@ macro_rules! define_queries {
849850
}
850851

851852
pub fn query_callbacks<'tcx>(arena: &'tcx Arena<'tcx>) -> &'tcx [DepKindStruct<'tcx>] {
852-
arena.alloc_from_iter(make_dep_kind_array!(query_callbacks))
853+
arena.alloc_from_iter(rustc_middle::make_dep_kind_array!(query_callbacks))
853854
}
854855
}
855856
}

0 commit comments

Comments
 (0)