File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -581,13 +581,11 @@ pub fn record_extern_trait(cx: &DocContext<'_>, did: DefId) {
581
581
}
582
582
}
583
583
584
- cx. active_extern_traits . borrow_mut ( ) . push ( did) ;
584
+ cx. active_extern_traits . borrow_mut ( ) . insert ( did) ;
585
585
586
586
debug ! ( "record_extern_trait: {:?}" , did) ;
587
587
let trait_ = build_external_trait ( cx, did) ;
588
588
589
- {
590
- cx. external_traits . borrow_mut ( ) . insert ( did, trait_) ;
591
- }
592
- cx. active_extern_traits . borrow_mut ( ) . remove_item ( & did) ;
589
+ cx. external_traits . borrow_mut ( ) . insert ( did, trait_) ;
590
+ cx. active_extern_traits . borrow_mut ( ) . remove ( & did) ;
593
591
}
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ pub struct DocContext<'tcx> {
51
51
pub external_traits : Rc < RefCell < FxHashMap < DefId , clean:: Trait > > > ,
52
52
/// Used while populating `external_traits` to ensure we don't process the same trait twice at
53
53
/// the same time.
54
- pub active_extern_traits : RefCell < Vec < DefId > > ,
54
+ pub active_extern_traits : RefCell < FxHashSet < DefId > > ,
55
55
// The current set of type and lifetime substitutions,
56
56
// for expanding type aliases at the HIR level:
57
57
You can’t perform that action at this time.
0 commit comments