Skip to content

Commit c33b667

Browse files
committed
Hoist stranded use declarations
1 parent f6aa851 commit c33b667

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

compiler/rustc_middle/src/query/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ use rustc_span::{DUMMY_SP, Span, Symbol};
103103
use rustc_target::spec::{PanicStrategy, SanitizerSet};
104104
use {rustc_abi as abi, rustc_ast as ast, rustc_hir as hir};
105105

106+
pub use self::keys::{AsLocalKey, Key, LocalCrate};
107+
pub use self::plumbing::{IntoQueryParam, TyCtxtAt, TyCtxtEnsureDone, TyCtxtEnsureOk};
106108
use crate::infer::canonical::{self, Canonical};
107109
use crate::lint::LintExpectation;
108110
use crate::metadata::ModChild;
@@ -146,11 +148,9 @@ use crate::{dep_graph, mir, thir};
146148
mod arena_cached;
147149
pub mod erase;
148150
mod keys;
149-
pub use keys::{AsLocalKey, Key, LocalCrate};
150151
pub mod on_disk_cache;
151152
#[macro_use]
152153
pub mod plumbing;
153-
pub use plumbing::{IntoQueryParam, TyCtxtAt, TyCtxtEnsureDone, TyCtxtEnsureOk};
154154

155155
// Each of these queries corresponds to a function pointer field in the
156156
// `Providers` struct for requesting a value of that type, and a method

compiler/rustc_middle/src/query/plumbing.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ use rustc_query_system::dep_graph::{DepNodeIndex, SerializedDepNodeIndex};
99
pub(crate) use rustc_query_system::query::QueryJobId;
1010
use rustc_query_system::query::*;
1111
use rustc_span::{DUMMY_SP, ErrorGuaranteed, Span};
12+
pub use sealed::IntoQueryParam;
1213

14+
use super::erase::EraseType;
1315
use crate::dep_graph;
1416
use crate::dep_graph::DepKind;
1517
use crate::query::on_disk_cache::{CacheEncoder, EncodedDepNodeIndex, OnDiskCache};
@@ -694,10 +696,6 @@ mod sealed {
694696
}
695697
}
696698

697-
pub use sealed::IntoQueryParam;
698-
699-
use super::erase::EraseType;
700-
701699
#[derive(Copy, Clone, Debug, HashStable)]
702700
pub struct CyclePlaceholder(pub ErrorGuaranteed);
703701

0 commit comments

Comments
 (0)