Skip to content

Commit 886c073

Browse files
committed
Remove re-export.
1 parent 44fc785 commit 886c073

File tree

27 files changed

+31
-30
lines changed

27 files changed

+31
-30
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4247,6 +4247,7 @@ version = "0.0.0"
42474247
dependencies = [
42484248
"rustc_ast",
42494249
"rustc_attr",
4250+
"rustc_crate",
42504251
"rustc_data_structures",
42514252
"rustc_errors",
42524253
"rustc_hir",

compiler/rustc_codegen_llvm/src/debuginfo/metadata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use crate::value::Value;
2020

2121
use rustc_ast as ast;
2222
use rustc_codegen_ssa::traits::*;
23+
use rustc_crate::ich::NodeIdHashingMode;
2324
use rustc_data_structures::const_cstr;
2425
use rustc_data_structures::fingerprint::Fingerprint;
2526
use rustc_data_structures::fx::FxHashMap;
@@ -28,7 +29,6 @@ use rustc_fs_util::path_to_c_string;
2829
use rustc_hir::def::CtorKind;
2930
use rustc_hir::def_id::{DefId, LOCAL_CRATE};
3031
use rustc_index::vec::{Idx, IndexVec};
31-
use rustc_middle::ich::NodeIdHashingMode;
3232
use rustc_middle::mir::{self, Field, GeneratorLayout};
3333
use rustc_middle::ty::layout::{self, IntegerExt, PrimitiveExt, TyAndLayout};
3434
use rustc_middle::ty::subst::GenericArgKind;

compiler/rustc_macros/src/hash_stable.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ pub fn hash_stable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2::To
115115
s.bound_impl(
116116
quote!(
117117
::rustc_data_structures::stable_hasher::HashStable<
118-
::rustc_middle::ich::StableHashingContext<'__ctx>,
118+
::rustc_crate::ich::StableHashingContext<'__ctx>,
119119
>
120120
),
121121
quote! {
122122
fn hash_stable(
123123
&self,
124-
__hcx: &mut ::rustc_middle::ich::StableHashingContext<'__ctx>,
124+
__hcx: &mut ::rustc_crate::ich::StableHashingContext<'__ctx>,
125125
__hasher: &mut ::rustc_data_structures::stable_hasher::StableHasher) {
126126
#discriminant
127127
match *self { #body }

compiler/rustc_middle/src/dep_graph/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
use crate::ich::StableHashingContext;
21
use crate::ty::query::try_load_from_on_disk_cache;
32
use crate::ty::{self, TyCtxt};
3+
use rustc_crate::ich::StableHashingContext;
44
use rustc_data_structures::profiling::SelfProfilerRef;
55
use rustc_data_structures::sync::Lock;
66
use rustc_data_structures::thin_vec::ThinVec;

compiler/rustc_middle/src/hir/map/collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use crate::arena::Arena;
22
use crate::hir::map::{Entry, HirOwnerData, Map};
33
use crate::hir::{Owner, OwnerNodes, ParentedNode};
4-
use crate::ich::StableHashingContext;
54
use rustc_crate::cstore::CrateStore;
5+
use rustc_crate::ich::StableHashingContext;
66
use rustc_data_structures::fingerprint::Fingerprint;
77
use rustc_data_structures::fx::FxHashMap;
88
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};

compiler/rustc_middle/src/hir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ pub mod exports;
66
pub mod map;
77
pub mod place;
88

9-
use crate::ich::StableHashingContext;
109
use crate::ty::query::Providers;
1110
use crate::ty::TyCtxt;
11+
use rustc_crate::ich::StableHashingContext;
1212
use rustc_data_structures::fingerprint::Fingerprint;
1313
use rustc_data_structures::fx::FxHashMap;
1414
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};

compiler/rustc_middle/src/ich/impls_ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//! This module contains `HashStable` implementations for various data types
22
//! from `rustc_middle::ty` in no particular order.
33
4-
use crate::ich::StableHashingContext;
54
use crate::middle::region;
65
use crate::mir;
76
use crate::ty;
7+
use rustc_crate::ich::StableHashingContext;
88
use rustc_data_structures::fingerprint::Fingerprint;
99
use rustc_data_structures::fx::FxHashMap;
1010
use rustc_data_structures::stable_hasher::{HashStable, StableHasher, ToStableHashKey};

compiler/rustc_middle/src/ich/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
//! ICH - Incremental Compilation Hash
22
33
use crate::ty::{fast_reject, TyCtxt};
4+
use rustc_crate::ich::{StableHashingContext, StableHashingContextProvider};
45
use rustc_data_structures::fx::FxHashMap;
56
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
67
use rustc_hir::def_id::DefId;
78
use smallvec::SmallVec;
89
use std::cmp::Ord;
910

10-
pub use rustc_crate::ich::{NodeIdHashingMode, StableHashingContext, StableHashingContextProvider};
11-
1211
mod impls_ty;
1312

1413
impl StableHashingContextProvider<'tcx> for TyCtxt<'tcx> {

compiler/rustc_middle/src/lint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::cmp;
22

3-
use crate::ich::StableHashingContext;
3+
use rustc_crate::ich::StableHashingContext;
44
use rustc_data_structures::fx::FxHashMap;
55
use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
66
use rustc_errors::{DiagnosticBuilder, DiagnosticId};

compiler/rustc_middle/src/middle/region.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//!
77
//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/borrow_check.html
88
9-
use crate::ich::{NodeIdHashingMode, StableHashingContext};
109
use crate::ty::TyCtxt;
10+
use rustc_crate::ich::{NodeIdHashingMode, StableHashingContext};
1111
use rustc_hir as hir;
1212
use rustc_hir::Node;
1313

0 commit comments

Comments
 (0)