@@ -56,7 +56,7 @@ crate struct Context<'tcx> {
56
56
pub ( super ) render_redirect_pages : bool ,
57
57
/// Tracks section IDs for `Deref` targets so they match in both the main
58
58
/// body and the sidebar.
59
- pub ( super ) deref_id_map : Rc < RefCell < FxHashMap < DefId , String > > > ,
59
+ pub ( super ) deref_id_map : RefCell < FxHashMap < DefId , String > > ,
60
60
/// The map used to ensure all generated 'id=' attributes are unique.
61
61
pub ( super ) id_map : RefCell < IdMap > ,
62
62
/// Shared mutable state.
@@ -73,7 +73,7 @@ crate struct Context<'tcx> {
73
73
74
74
// `Context` is cloned a lot, so we don't want the size to grow unexpectedly.
75
75
#[ cfg( all( target_arch = "x86_64" , target_pointer_width = "64" ) ) ]
76
- rustc_data_structures:: static_assert_size!( Context <' _>, 112 ) ;
76
+ rustc_data_structures:: static_assert_size!( Context <' _>, 144 ) ;
77
77
78
78
/// Shared mutable state used in [`Context`] and elsewhere.
79
79
crate struct SharedContext < ' tcx > {
@@ -516,7 +516,7 @@ impl<'tcx> FormatRenderer<'tcx> for Context<'tcx> {
516
516
dst,
517
517
render_redirect_pages : false ,
518
518
id_map : RefCell :: new ( id_map) ,
519
- deref_id_map : Rc :: new ( RefCell :: new ( FxHashMap :: default ( ) ) ) ,
519
+ deref_id_map : RefCell :: new ( FxHashMap :: default ( ) ) ,
520
520
shared : Rc :: new ( scx) ,
521
521
include_sources,
522
522
} ;
@@ -540,7 +540,7 @@ impl<'tcx> FormatRenderer<'tcx> for Context<'tcx> {
540
540
current : self . current . clone ( ) ,
541
541
dst : self . dst . clone ( ) ,
542
542
render_redirect_pages : self . render_redirect_pages ,
543
- deref_id_map : Rc :: new ( RefCell :: new ( FxHashMap :: default ( ) ) ) ,
543
+ deref_id_map : RefCell :: new ( FxHashMap :: default ( ) ) ,
544
544
id_map : RefCell :: new ( IdMap :: new ( ) ) ,
545
545
shared : Rc :: clone ( & self . shared ) ,
546
546
include_sources : self . include_sources ,
0 commit comments