@@ -40,22 +40,22 @@ pub struct StrictVersionHashVisitor<'a, 'hash: 'a, 'tcx: 'hash> {
40
40
// collect a deterministic hash of def-ids that we have seen
41
41
def_path_hashes : & ' a mut DefPathHashes < ' hash , ' tcx > ,
42
42
hash_spans : bool ,
43
- codemap : CachedCodemapView < ' tcx > ,
43
+ codemap : CachingCodemapView < ' tcx > ,
44
44
}
45
45
46
- struct CachedCodemapView < ' tcx > {
46
+ struct CachingCodemapView < ' tcx > {
47
47
codemap : & ' tcx CodeMap ,
48
48
// Format: (line number, line-start, line_end, file)
49
49
line_cache : [ ( usize , BytePos , BytePos , Rc < FileMap > ) ; 4 ] ,
50
50
eviction_index : usize ,
51
51
}
52
52
53
- impl < ' tcx > CachedCodemapView < ' tcx > {
54
- fn new < ' a > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ) -> CachedCodemapView < ' tcx > {
53
+ impl < ' tcx > CachingCodemapView < ' tcx > {
54
+ fn new < ' a > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ) -> CachingCodemapView < ' tcx > {
55
55
let codemap = tcx. sess . codemap ( ) ;
56
56
let first_file = codemap. files . borrow ( ) [ 0 ] . clone ( ) ;
57
57
58
- CachedCodemapView {
58
+ CachingCodemapView {
59
59
codemap : codemap,
60
60
line_cache : [ ( 0 , BytePos ( 0 ) , BytePos ( 0 ) , first_file. clone ( ) ) ,
61
61
( 0 , BytePos ( 0 ) , BytePos ( 0 ) , first_file. clone ( ) ) ,
@@ -123,7 +123,7 @@ impl<'a, 'hash, 'tcx> StrictVersionHashVisitor<'a, 'hash, 'tcx> {
123
123
tcx : tcx,
124
124
def_path_hashes : def_path_hashes,
125
125
hash_spans : hash_spans,
126
- codemap : CachedCodemapView :: new ( tcx) ,
126
+ codemap : CachingCodemapView :: new ( tcx) ,
127
127
}
128
128
}
129
129
0 commit comments