File tree Expand file tree Collapse file tree 4 files changed +1
-12
lines changed Expand file tree Collapse file tree 4 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,6 @@ pub(crate) trait FormatRenderer<'tcx>: Sized {
68
68
69
69
/// Post processing hook for cleanup and dumping output to files.
70
70
fn after_krate ( self ) -> Result < ( ) , Error > ;
71
-
72
- fn cache ( & self ) -> & Cache ;
73
71
}
74
72
75
73
fn run_format_inner < ' tcx , T : FormatRenderer < ' tcx > > (
Original file line number Diff line number Diff line change @@ -875,8 +875,4 @@ impl<'tcx> FormatRenderer<'tcx> for Context<'tcx> {
875
875
876
876
Ok ( ( ) )
877
877
}
878
-
879
- fn cache ( & self ) -> & Cache {
880
- & self . shared . cache
881
- }
882
878
}
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ use rustdoc_json_types::*;
16
16
use thin_vec:: ThinVec ;
17
17
18
18
use crate :: clean:: { self , ItemId } ;
19
- use crate :: formats:: FormatRenderer ;
20
19
use crate :: formats:: item_type:: ItemType ;
21
20
use crate :: json:: JsonRenderer ;
22
21
use crate :: passes:: collect_intra_doc_links:: UrlFragment ;
@@ -41,7 +40,7 @@ impl JsonRenderer<'_> {
41
40
} )
42
41
. collect ( ) ;
43
42
let docs = item. opt_doc_value ( ) ;
44
- let attrs = item. attributes_and_repr ( self . tcx , self . cache ( ) , true ) ;
43
+ let attrs = item. attributes_and_repr ( self . tcx , & self . cache , true ) ;
45
44
let span = item. span ( self . tcx ) ;
46
45
let visibility = item. visibility ( self . tcx ) ;
47
46
let clean:: ItemInner { name, item_id, .. } = * item. inner ;
Original file line number Diff line number Diff line change @@ -376,8 +376,4 @@ impl<'tcx> FormatRenderer<'tcx> for JsonRenderer<'tcx> {
376
376
self . serialize_and_write ( output_crate, BufWriter :: new ( stdout ( ) . lock ( ) ) , "<stdout>" )
377
377
}
378
378
}
379
-
380
- fn cache ( & self ) -> & Cache {
381
- & self . cache
382
- }
383
379
}
You can’t perform that action at this time.
0 commit comments