File tree 4 files changed +5
-6
lines changed
librustc_incremental/calculate_svh
4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- use rustc :: ty:: TyCtxt ;
11
+ use ty:: TyCtxt ;
12
12
use std:: rc:: Rc ;
13
13
use syntax:: codemap:: CodeMap ;
14
14
use syntax_pos:: { BytePos , FileMap } ;
Original file line number Diff line number Diff line change 10
10
11
11
pub use self :: fingerprint:: Fingerprint ;
12
12
pub use self :: def_path_hash:: DefPathHashes ;
13
+ pub use self :: caching_codemap_view:: CachingCodemapView ;
13
14
14
15
mod fingerprint;
15
16
mod def_path_hash;
17
+ mod caching_codemap_view;
Original file line number Diff line number Diff line change @@ -35,18 +35,16 @@ use rustc::hir;
35
35
use rustc:: hir:: def_id:: { CRATE_DEF_INDEX , DefId } ;
36
36
use rustc:: hir:: intravisit as visit;
37
37
use rustc:: hir:: intravisit:: { Visitor , NestedVisitorMap } ;
38
- use rustc:: ich:: { Fingerprint , DefPathHashes } ;
38
+ use rustc:: ich:: { Fingerprint , DefPathHashes , CachingCodemapView } ;
39
39
use rustc:: ty:: TyCtxt ;
40
40
use rustc_data_structures:: stable_hasher:: StableHasher ;
41
41
use rustc_data_structures:: fx:: FxHashMap ;
42
42
use rustc:: util:: common:: record_time;
43
43
use rustc:: session:: config:: DebugInfoLevel :: NoDebugInfo ;
44
44
45
45
use self :: svh_visitor:: StrictVersionHashVisitor ;
46
- use self :: caching_codemap_view:: CachingCodemapView ;
47
46
48
47
mod svh_visitor;
49
- mod caching_codemap_view;
50
48
51
49
pub type IchHasher = StableHasher < Fingerprint > ;
52
50
Original file line number Diff line number Diff line change @@ -26,11 +26,10 @@ use rustc::hir::*;
26
26
use rustc:: hir:: def:: Def ;
27
27
use rustc:: hir:: def_id:: DefId ;
28
28
use rustc:: hir:: intravisit:: { self as visit, Visitor } ;
29
- use rustc:: ich:: DefPathHashes ;
29
+ use rustc:: ich:: { DefPathHashes , CachingCodemapView } ;
30
30
use rustc:: ty:: TyCtxt ;
31
31
use std:: hash:: { Hash , Hasher } ;
32
32
33
- use super :: caching_codemap_view:: CachingCodemapView ;
34
33
use super :: IchHasher ;
35
34
36
35
const IGNORED_ATTRIBUTES : & ' static [ & ' static str ] = & [
You can’t perform that action at this time.
0 commit comments