Skip to content

Commit 8c00e63

Browse files
Move Fingerprint to rustc::ich::Fingerprint.
1 parent bb24305 commit 8c00e63

File tree

12 files changed

+11
-10
lines changed

12 files changed

+11
-10
lines changed

src/librustc_incremental/ich/mod.rs renamed to src/librustc/ich/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -11,3 +11,4 @@
1111
pub use self::fingerprint::Fingerprint;
1212

1313
mod fingerprint;
14+

src/librustc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ pub mod diagnostics;
7272
pub mod cfg;
7373
pub mod dep_graph;
7474
pub mod hir;
75+
pub mod ich;
7576
pub mod infer;
7677
pub mod lint;
7778

src/librustc_driver/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
use rustc::hir::{self, map as hir_map};
1212
use rustc::hir::lowering::lower_crate;
13+
use rustc::ich::Fingerprint;
1314
use rustc_data_structures::stable_hasher::StableHasher;
1415
use rustc_mir as mir;
1516
use rustc::session::{Session, CompileResult, compile_result_from_err_count};
@@ -25,7 +26,6 @@ use rustc::util::nodemap::NodeSet;
2526
use rustc::util::fs::rename_or_copy_remove;
2627
use rustc_borrowck as borrowck;
2728
use rustc_incremental::{self, IncrementalHashesMap};
28-
use rustc_incremental::ich::Fingerprint;
2929
use rustc_resolve::{MakeGlobMap, Resolver};
3030
use rustc_metadata::creader::CrateLoader;
3131
use rustc_metadata::cstore::{self, CStore};

src/librustc_incremental/calculate_svh/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ 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;
3839
use rustc::ty::TyCtxt;
3940
use rustc_data_structures::stable_hasher::StableHasher;
40-
use ich::Fingerprint;
4141
use rustc_data_structures::fx::FxHashMap;
4242
use rustc::util::common::record_time;
4343
use rustc::session::config::DebugInfoLevel::NoDebugInfo;

src/librustc_incremental/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ const ATTR_THEN_THIS_WOULD_NEED: &'static str = "rustc_then_this_would_need";
4646
mod assert_dep_graph;
4747
mod calculate_svh;
4848
mod persist;
49-
pub mod ich;
5049

5150
pub use assert_dep_graph::assert_dep_graph;
5251
pub use calculate_svh::compute_incremental_hashes_map;

src/librustc_incremental/persist/data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
1313
use rustc::dep_graph::{DepNode, WorkProduct, WorkProductId};
1414
use rustc::hir::def_id::DefIndex;
15+
use rustc::ich::Fingerprint;
1516
use std::sync::Arc;
1617
use rustc_data_structures::fx::FxHashMap;
17-
use ich::Fingerprint;
1818

1919
use super::directory::DefPathIndex;
2020

src/librustc_incremental/persist/dirty_clean.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ use rustc::hir;
4747
use rustc::hir::def_id::DefId;
4848
use rustc::hir::itemlikevisit::ItemLikeVisitor;
4949
use rustc::hir::intravisit;
50+
use rustc::ich::Fingerprint;
5051
use syntax::ast::{self, Attribute, NestedMetaItem};
5152
use rustc_data_structures::fx::{FxHashSet, FxHashMap};
5253
use syntax_pos::Span;
5354
use rustc::ty::TyCtxt;
54-
use ich::Fingerprint;
5555

5656
use {ATTR_DIRTY, ATTR_CLEAN, ATTR_DIRTY_METADATA, ATTR_CLEAN_METADATA};
5757

src/librustc_incremental/persist/hash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
use rustc::dep_graph::DepNode;
1212
use rustc::hir::def_id::{CrateNum, DefId};
1313
use rustc::hir::svh::Svh;
14+
use rustc::ich::Fingerprint;
1415
use rustc::ty::TyCtxt;
1516
use rustc_data_structures::fx::FxHashMap;
1617
use rustc_data_structures::flock;
1718
use rustc_serialize::Decodable;
1819
use rustc_serialize::opaque::Decoder;
1920

2021
use IncrementalHashesMap;
21-
use ich::Fingerprint;
2222
use super::data::*;
2323
use super::fs::*;
2424
use super::file_format;

src/librustc_incremental/persist/load.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use rustc::dep_graph::{DepNode, WorkProductId};
1414
use rustc::hir::def_id::DefId;
1515
use rustc::hir::svh::Svh;
16+
use rustc::ich::Fingerprint;
1617
use rustc::session::Session;
1718
use rustc::ty::TyCtxt;
1819
use rustc_data_structures::fx::{FxHashSet, FxHashMap};
@@ -22,7 +23,6 @@ use std::path::{Path};
2223
use std::sync::Arc;
2324

2425
use IncrementalHashesMap;
25-
use ich::Fingerprint;
2626
use super::data::*;
2727
use super::directory::*;
2828
use super::dirty_clean;

src/librustc_incremental/persist/preds/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
use rustc::dep_graph::{DepGraphQuery, DepNode};
1212
use rustc::hir::def_id::DefId;
13+
use rustc::ich::Fingerprint;
1314
use rustc_data_structures::fx::FxHashMap;
1415
use rustc_data_structures::graph::{Graph, NodeIndex};
1516

1617
use super::hash::*;
17-
use ich::Fingerprint;
1818

1919
mod compress;
2020

src/librustc_incremental/persist/save.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use rustc::dep_graph::DepNode;
1212
use rustc::hir::def_id::DefId;
1313
use rustc::hir::svh::Svh;
14+
use rustc::ich::Fingerprint;
1415
use rustc::session::Session;
1516
use rustc::ty::TyCtxt;
1617
use rustc_data_structures::fx::FxHashMap;
@@ -23,7 +24,6 @@ use std::fs::{self, File};
2324
use std::path::PathBuf;
2425

2526
use IncrementalHashesMap;
26-
use ich::Fingerprint;
2727
use super::data::*;
2828
use super::directory::*;
2929
use super::hash::*;

0 commit comments

Comments
 (0)