@@ -40,22 +40,22 @@ pub struct StrictVersionHashVisitor<'a, 'hash: 'a, 'tcx: 'hash> {
4040 // collect a deterministic hash of def-ids that we have seen
4141 def_path_hashes : & ' a mut DefPathHashes < ' hash , ' tcx > ,
4242 hash_spans : bool ,
43- codemap : CachedCodemapView < ' tcx > ,
43+ codemap : CachingCodemapView < ' tcx > ,
4444}
4545
46- struct CachedCodemapView < ' tcx > {
46+ struct CachingCodemapView < ' tcx > {
4747 codemap : & ' tcx CodeMap ,
4848 // Format: (line number, line-start, line_end, file)
4949 line_cache : [ ( usize , BytePos , BytePos , Rc < FileMap > ) ; 4 ] ,
5050 eviction_index : usize ,
5151}
5252
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 > {
5555 let codemap = tcx. sess . codemap ( ) ;
5656 let first_file = codemap. files . borrow ( ) [ 0 ] . clone ( ) ;
5757
58- CachedCodemapView {
58+ CachingCodemapView {
5959 codemap : codemap,
6060 line_cache : [ ( 0 , BytePos ( 0 ) , BytePos ( 0 ) , first_file. clone ( ) ) ,
6161 ( 0 , BytePos ( 0 ) , BytePos ( 0 ) , first_file. clone ( ) ) ,
@@ -123,7 +123,7 @@ impl<'a, 'hash, 'tcx> StrictVersionHashVisitor<'a, 'hash, 'tcx> {
123123 tcx : tcx,
124124 def_path_hashes : def_path_hashes,
125125 hash_spans : hash_spans,
126- codemap : CachedCodemapView :: new ( tcx) ,
126+ codemap : CachingCodemapView :: new ( tcx) ,
127127 }
128128 }
129129
0 commit comments