@@ -50,8 +50,7 @@ struct MarkSymbolVisitor<'a, 'tcx: 'a> {
50
50
worklist : Vec < ast:: NodeId > ,
51
51
tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
52
52
tables : & ' a ty:: TypeckTables < ' tcx > ,
53
- // TODO: remove this `Box`
54
- live_symbols : Box < FxHashSet < ast:: NodeId > > ,
53
+ live_symbols : FxHashSet < ast:: NodeId > ,
55
54
repr_has_repr_c : bool ,
56
55
in_pat : bool ,
57
56
inherited_pub_visibility : bool ,
@@ -424,13 +423,13 @@ fn create_and_seed_worklist<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
424
423
fn find_live < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
425
424
access_levels : & privacy:: AccessLevels ,
426
425
krate : & hir:: Crate )
427
- -> Box < FxHashSet < ast:: NodeId > > {
426
+ -> FxHashSet < ast:: NodeId > {
428
427
let worklist = create_and_seed_worklist ( tcx, access_levels, krate) ;
429
428
let mut symbol_visitor = MarkSymbolVisitor {
430
429
worklist,
431
430
tcx,
432
431
tables : & ty:: TypeckTables :: empty ( None ) ,
433
- live_symbols : box Default :: default ( ) ,
432
+ live_symbols : Default :: default ( ) ,
434
433
repr_has_repr_c : false ,
435
434
in_pat : false ,
436
435
inherited_pub_visibility : false ,
@@ -451,7 +450,7 @@ fn get_struct_ctor_id(item: &hir::Item) -> Option<ast::NodeId> {
451
450
452
451
struct DeadVisitor < ' a , ' tcx : ' a > {
453
452
tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
454
- live_symbols : Box < FxHashSet < ast:: NodeId > > ,
453
+ live_symbols : FxHashSet < ast:: NodeId > ,
455
454
}
456
455
457
456
impl < ' a , ' tcx > DeadVisitor < ' a , ' tcx > {
0 commit comments