@@ -127,7 +127,7 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
127127 {
128128 self . dep_graph . read ( DepNode :: MetaData ( def) ) ;
129129 let cdata = self . get_crate_data ( def. krate ) ;
130- decoder:: get_adt_def ( & self . intr , & cdata, def. index , tcx)
130+ decoder:: get_adt_def ( & cdata, def. index , tcx)
131131 }
132132
133133 fn method_arg_names ( & self , did : DefId ) -> Vec < String >
@@ -140,13 +140,13 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
140140 fn item_name ( & self , def : DefId ) -> ast:: Name {
141141 self . dep_graph . read ( DepNode :: MetaData ( def) ) ;
142142 let cdata = self . get_crate_data ( def. krate ) ;
143- decoder:: get_item_name ( & self . intr , & cdata, def. index )
143+ decoder:: get_item_name ( & cdata, def. index )
144144 }
145145
146146 fn opt_item_name ( & self , def : DefId ) -> Option < ast:: Name > {
147147 self . dep_graph . read ( DepNode :: MetaData ( def) ) ;
148148 let cdata = self . get_crate_data ( def. krate ) ;
149- decoder:: maybe_get_item_name ( & self . intr , & cdata, def. index )
149+ decoder:: maybe_get_item_name ( & cdata, def. index )
150150 }
151151
152152 fn inherent_implementations_for_type ( & self , def_id : DefId ) -> Vec < DefId >
@@ -176,7 +176,7 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
176176 {
177177 self . dep_graph . read ( DepNode :: MetaData ( def) ) ;
178178 let cdata = self . get_crate_data ( def. krate ) ;
179- decoder:: get_provided_trait_methods ( self . intr . clone ( ) , & cdata, def. index , tcx)
179+ decoder:: get_provided_trait_methods ( & cdata, def. index , tcx)
180180 }
181181
182182 fn trait_item_def_ids ( & self , def : DefId )
@@ -222,7 +222,7 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
222222 -> Vec < Rc < ty:: AssociatedConst < ' tcx > > > {
223223 self . dep_graph . read ( DepNode :: MetaData ( def) ) ;
224224 let cdata = self . get_crate_data ( def. krate ) ;
225- decoder:: get_associated_consts ( self . intr . clone ( ) , & cdata, def. index , tcx)
225+ decoder:: get_associated_consts ( & cdata, def. index , tcx)
226226 }
227227
228228 fn impl_parent ( & self , impl_def : DefId ) -> Option < DefId > {
@@ -243,11 +243,7 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
243243 {
244244 self . dep_graph . read ( DepNode :: MetaData ( def) ) ;
245245 let cdata = self . get_crate_data ( def. krate ) ;
246- decoder:: get_impl_or_trait_item (
247- self . intr . clone ( ) ,
248- & cdata,
249- def. index ,
250- tcx)
246+ decoder:: get_impl_or_trait_item ( & cdata, def. index , tcx)
251247 }
252248
253249 fn is_const_fn ( & self , did : DefId ) -> bool
@@ -460,7 +456,7 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
460456 {
461457 self . dep_graph . read ( DepNode :: MetaData ( def) ) ;
462458 let cdata = self . get_crate_data ( def. krate ) ;
463- decoder:: get_struct_field_names ( & self . intr , & cdata, def. index )
459+ decoder:: get_struct_field_names ( & cdata, def. index )
464460 }
465461
466462 fn item_children ( & self , def_id : DefId ) -> Vec < ChildItem >
@@ -469,14 +465,9 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
469465 let mut result = vec ! [ ] ;
470466 let crate_data = self . get_crate_data ( def_id. krate ) ;
471467 let get_crate_data = |cnum| self . get_crate_data ( cnum) ;
472- decoder:: each_child_of_item (
473- self . intr . clone ( ) , & crate_data,
474- def_id. index , get_crate_data,
475- |def, name, vis| result. push ( ChildItem {
476- def : def,
477- name : name,
478- vis : vis
479- } ) ) ;
468+ decoder:: each_child_of_item ( & crate_data, def_id. index , get_crate_data, |def, name, vis| {
469+ result. push ( ChildItem { def : def, name : name, vis : vis } ) ;
470+ } ) ;
480471 result
481472 }
482473
@@ -485,13 +476,9 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
485476 let mut result = vec ! [ ] ;
486477 let crate_data = self . get_crate_data ( cnum) ;
487478 let get_crate_data = |cnum| self . get_crate_data ( cnum) ;
488- decoder:: each_top_level_item_of_crate (
489- self . intr . clone ( ) , & crate_data, get_crate_data,
490- |def, name, vis| result. push ( ChildItem {
491- def : def,
492- name : name,
493- vis : vis
494- } ) ) ;
479+ decoder:: each_top_level_item_of_crate ( & crate_data, get_crate_data, |def, name, vis| {
480+ result. push ( ChildItem { def : def, name : name, vis : vis } ) ;
481+ } ) ;
495482 result
496483 }
497484
0 commit comments