Skip to content

Commit 1445ed2

Browse files
Move DefPathHashes to rustc::ich
1 parent 8c00e63 commit 1445ed2

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

src/librustc_incremental/calculate_svh/def_path_hash.rs renamed to src/librustc/ich/def_path_hash.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use rustc::hir::def_id::DefId;
12-
use rustc::ty::TyCtxt;
13-
use rustc::util::nodemap::DefIdMap;
11+
use hir::def_id::DefId;
12+
use ty::TyCtxt;
13+
use util::nodemap::DefIdMap;
1414

1515
pub struct DefPathHashes<'a, 'tcx: 'a> {
1616
tcx: TyCtxt<'a, 'tcx, 'tcx>,

src/librustc/ich/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
pub use self::fingerprint::Fingerprint;
12+
pub use self::def_path_hash::DefPathHashes;
1213

1314
mod fingerprint;
14-
15+
mod def_path_hash;

src/librustc_incremental/calculate_svh/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,16 @@ use rustc::hir;
3535
use rustc::hir::def_id::{CRATE_DEF_INDEX, DefId};
3636
use rustc::hir::intravisit as visit;
3737
use rustc::hir::intravisit::{Visitor, NestedVisitorMap};
38-
use rustc::ich::Fingerprint;
38+
use rustc::ich::{Fingerprint, DefPathHashes};
3939
use rustc::ty::TyCtxt;
4040
use rustc_data_structures::stable_hasher::StableHasher;
4141
use rustc_data_structures::fx::FxHashMap;
4242
use rustc::util::common::record_time;
4343
use rustc::session::config::DebugInfoLevel::NoDebugInfo;
4444

45-
use self::def_path_hash::DefPathHashes;
4645
use self::svh_visitor::StrictVersionHashVisitor;
4746
use self::caching_codemap_view::CachingCodemapView;
4847

49-
mod def_path_hash;
5048
mod svh_visitor;
5149
mod caching_codemap_view;
5250

src/librustc_incremental/calculate_svh/svh_visitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ use rustc::hir::*;
2626
use rustc::hir::def::Def;
2727
use rustc::hir::def_id::DefId;
2828
use rustc::hir::intravisit::{self as visit, Visitor};
29+
use rustc::ich::DefPathHashes;
2930
use rustc::ty::TyCtxt;
3031
use std::hash::{Hash, Hasher};
3132

32-
use super::def_path_hash::DefPathHashes;
3333
use super::caching_codemap_view::CachingCodemapView;
3434
use super::IchHasher;
3535

0 commit comments

Comments
 (0)