File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -99,9 +99,8 @@ use rustc_front::print::pprust;
99
99
100
100
pub fn collect_item_types ( tcx : & ty:: ctxt ) {
101
101
let ccx = & CrateCtxt { tcx : tcx, stack : RefCell :: new ( Vec :: new ( ) ) } ;
102
-
103
102
let mut visitor = CollectItemTypesVisitor { ccx : ccx } ;
104
- ccx. tcx . map . krate ( ) . visit_all_items ( & mut visitor) ;
103
+ ccx. tcx . visit_all_items_in_krate ( DepNode :: CollectItem , & mut visitor) ;
105
104
}
106
105
107
106
///////////////////////////////////////////////////////////////////////////
@@ -146,9 +145,6 @@ struct CollectItemTypesVisitor<'a, 'tcx: 'a> {
146
145
147
146
impl < ' a , ' tcx , ' v > intravisit:: Visitor < ' v > for CollectItemTypesVisitor < ' a , ' tcx > {
148
147
fn visit_item ( & mut self , item : & hir:: Item ) {
149
- let tcx = self . ccx . tcx ;
150
- let item_def_id = tcx. map . local_def_id ( item. id ) ;
151
- let _task = tcx. dep_graph . in_task ( DepNode :: CollectItem ( item_def_id) ) ;
152
148
convert_item ( self . ccx , item) ;
153
149
}
154
150
}
You can’t perform that action at this time.
0 commit comments