@@ -40,64 +40,64 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
4040 fn stability ( & self , def : DefId ) -> Option < attr:: Stability >
4141 {
4242 let cdata = self . get_crate_data ( def. krate ) ;
43- decoder:: get_stability ( & * cdata, def. index )
43+ decoder:: get_stability ( & cdata, def. index )
4444 }
4545
4646 fn deprecation ( & self , def : DefId ) -> Option < attr:: Deprecation >
4747 {
4848 let cdata = self . get_crate_data ( def. krate ) ;
49- decoder:: get_deprecation ( & * cdata, def. index )
49+ decoder:: get_deprecation ( & cdata, def. index )
5050 }
5151
5252 fn closure_kind ( & self , _tcx : & ty:: ctxt < ' tcx > , def_id : DefId ) -> ty:: ClosureKind
5353 {
5454 assert ! ( !def_id. is_local( ) ) ;
5555 let cdata = self . get_crate_data ( def_id. krate ) ;
56- decoder:: closure_kind ( & * cdata, def_id. index )
56+ decoder:: closure_kind ( & cdata, def_id. index )
5757 }
5858
5959 fn closure_ty ( & self , tcx : & ty:: ctxt < ' tcx > , def_id : DefId ) -> ty:: ClosureTy < ' tcx >
6060 {
6161 assert ! ( !def_id. is_local( ) ) ;
6262 let cdata = self . get_crate_data ( def_id. krate ) ;
63- decoder:: closure_ty ( & * cdata, def_id. index , tcx)
63+ decoder:: closure_ty ( & cdata, def_id. index , tcx)
6464 }
6565
6666 fn item_variances ( & self , def : DefId ) -> ty:: ItemVariances {
6767 let cdata = self . get_crate_data ( def. krate ) ;
68- decoder:: get_item_variances ( & * cdata, def. index )
68+ decoder:: get_item_variances ( & cdata, def. index )
6969 }
7070
7171 fn repr_attrs ( & self , def : DefId ) -> Vec < attr:: ReprAttr > {
7272 let cdata = self . get_crate_data ( def. krate ) ;
73- decoder:: get_repr_attrs ( & * cdata, def. index )
73+ decoder:: get_repr_attrs ( & cdata, def. index )
7474 }
7575
7676 fn item_type ( & self , tcx : & ty:: ctxt < ' tcx > , def : DefId )
7777 -> ty:: TypeScheme < ' tcx >
7878 {
7979 let cdata = self . get_crate_data ( def. krate ) ;
80- decoder:: get_type ( & * cdata, def. index , tcx)
80+ decoder:: get_type ( & cdata, def. index , tcx)
8181 }
8282
8383 fn item_predicates ( & self , tcx : & ty:: ctxt < ' tcx > , def : DefId )
8484 -> ty:: GenericPredicates < ' tcx >
8585 {
8686 let cdata = self . get_crate_data ( def. krate ) ;
87- decoder:: get_predicates ( & * cdata, def. index , tcx)
87+ decoder:: get_predicates ( & cdata, def. index , tcx)
8888 }
8989
9090 fn item_super_predicates ( & self , tcx : & ty:: ctxt < ' tcx > , def : DefId )
9191 -> ty:: GenericPredicates < ' tcx >
9292 {
9393 let cdata = self . get_crate_data ( def. krate ) ;
94- decoder:: get_super_predicates ( & * cdata, def. index , tcx)
94+ decoder:: get_super_predicates ( & cdata, def. index , tcx)
9595 }
9696
9797 fn item_attrs ( & self , def_id : DefId ) -> Vec < ast:: Attribute >
9898 {
9999 let cdata = self . get_crate_data ( def_id. krate ) ;
100- decoder:: get_item_attrs ( & * cdata, def_id. index )
100+ decoder:: get_item_attrs ( & cdata, def_id. index )
101101 }
102102
103103 fn item_symbol ( & self , def : DefId ) -> String
@@ -109,13 +109,13 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
109109 fn trait_def ( & self , tcx : & ty:: ctxt < ' tcx > , def : DefId ) -> ty:: TraitDef < ' tcx >
110110 {
111111 let cdata = self . get_crate_data ( def. krate ) ;
112- decoder:: get_trait_def ( & * cdata, def. index , tcx)
112+ decoder:: get_trait_def ( & cdata, def. index , tcx)
113113 }
114114
115115 fn adt_def ( & self , tcx : & ty:: ctxt < ' tcx > , def : DefId ) -> ty:: AdtDefMaster < ' tcx >
116116 {
117117 let cdata = self . get_crate_data ( def. krate ) ;
118- decoder:: get_adt_def ( & self . intr , & * cdata, def. index , tcx)
118+ decoder:: get_adt_def ( & self . intr , & cdata, def. index , tcx)
119119 }
120120
121121 fn method_arg_names ( & self , did : DefId ) -> Vec < String >
@@ -126,7 +126,7 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
126126
127127 fn item_path ( & self , def : DefId ) -> Vec < hir_map:: PathElem > {
128128 let cdata = self . get_crate_data ( def. krate ) ;
129- let path = decoder:: get_item_path ( & * cdata, def. index ) ;
129+ let path = decoder:: get_item_path ( & cdata, def. index ) ;
130130
131131 cdata. with_local_path ( |cpath| {
132132 let mut r = Vec :: with_capacity ( cpath. len ( ) + path. len ( ) ) ;
@@ -138,7 +138,7 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
138138
139139 fn extern_item_path ( & self , def : DefId ) -> Vec < hir_map:: PathElem > {
140140 let cdata = self . get_crate_data ( def. krate ) ;
141- let path = decoder:: get_item_path ( & * cdata, def. index ) ;
141+ let path = decoder:: get_item_path ( & cdata, def. index ) ;
142142
143143 let mut r = Vec :: with_capacity ( path. len ( ) + 1 ) ;
144144 let crate_name = hir_map:: PathMod ( token:: intern ( & cdata. name ) ) ;
@@ -157,7 +157,7 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
157157 {
158158 let mut result = vec ! [ ] ;
159159 let cdata = self . get_crate_data ( def_id. krate ) ;
160- decoder:: each_inherent_implementation_for_type ( & * cdata, def_id. index ,
160+ decoder:: each_inherent_implementation_for_type ( & cdata, def_id. index ,
161161 |iid| result. push ( iid) ) ;
162162 result
163163 }
@@ -177,53 +177,53 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
177177 -> Vec < Rc < ty:: Method < ' tcx > > >
178178 {
179179 let cdata = self . get_crate_data ( def. krate ) ;
180- decoder:: get_provided_trait_methods ( self . intr . clone ( ) , & * cdata, def. index , tcx)
180+ decoder:: get_provided_trait_methods ( self . intr . clone ( ) , & cdata, def. index , tcx)
181181 }
182182
183183 fn trait_item_def_ids ( & self , def : DefId )
184184 -> Vec < ty:: ImplOrTraitItemId >
185185 {
186186 let cdata = self . get_crate_data ( def. krate ) ;
187- decoder:: get_trait_item_def_ids ( & * cdata, def. index )
187+ decoder:: get_trait_item_def_ids ( & cdata, def. index )
188188 }
189189
190190 fn impl_items ( & self , impl_def_id : DefId ) -> Vec < ty:: ImplOrTraitItemId >
191191 {
192192 let cdata = self . get_crate_data ( impl_def_id. krate ) ;
193- decoder:: get_impl_items ( & * cdata, impl_def_id. index )
193+ decoder:: get_impl_items ( & cdata, impl_def_id. index )
194194 }
195195
196196 fn impl_polarity ( & self , def : DefId ) -> Option < hir:: ImplPolarity >
197197 {
198198 let cdata = self . get_crate_data ( def. krate ) ;
199- decoder:: get_impl_polarity ( & * cdata, def. index )
199+ decoder:: get_impl_polarity ( & cdata, def. index )
200200 }
201201
202202 fn impl_trait_ref ( & self , tcx : & ty:: ctxt < ' tcx > , def : DefId )
203203 -> Option < ty:: TraitRef < ' tcx > >
204204 {
205205 let cdata = self . get_crate_data ( def. krate ) ;
206- decoder:: get_impl_trait ( & * cdata, def. index , tcx)
206+ decoder:: get_impl_trait ( & cdata, def. index , tcx)
207207 }
208208
209209 fn custom_coerce_unsized_kind ( & self , def : DefId )
210210 -> Option < ty:: adjustment:: CustomCoerceUnsized >
211211 {
212212 let cdata = self . get_crate_data ( def. krate ) ;
213- decoder:: get_custom_coerce_unsized_kind ( & * cdata, def. index )
213+ decoder:: get_custom_coerce_unsized_kind ( & cdata, def. index )
214214 }
215215
216216 // FIXME: killme
217217 fn associated_consts ( & self , tcx : & ty:: ctxt < ' tcx > , def : DefId )
218218 -> Vec < Rc < ty:: AssociatedConst < ' tcx > > > {
219219 let cdata = self . get_crate_data ( def. krate ) ;
220- decoder:: get_associated_consts ( self . intr . clone ( ) , & * cdata, def. index , tcx)
220+ decoder:: get_associated_consts ( self . intr . clone ( ) , & cdata, def. index , tcx)
221221 }
222222
223223 fn trait_of_item ( & self , tcx : & ty:: ctxt < ' tcx > , def_id : DefId ) -> Option < DefId >
224224 {
225225 let cdata = self . get_crate_data ( def_id. krate ) ;
226- decoder:: get_trait_of_item ( & * cdata, def_id. index , tcx)
226+ decoder:: get_trait_of_item ( & cdata, def_id. index , tcx)
227227 }
228228
229229 fn impl_or_trait_item ( & self , tcx : & ty:: ctxt < ' tcx > , def : DefId )
@@ -232,7 +232,7 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
232232 let cdata = self . get_crate_data ( def. krate ) ;
233233 decoder:: get_impl_or_trait_item (
234234 self . intr . clone ( ) ,
235- & * cdata,
235+ & cdata,
236236 def. index ,
237237 tcx)
238238 }
@@ -246,29 +246,29 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
246246 fn is_defaulted_trait ( & self , trait_def_id : DefId ) -> bool
247247 {
248248 let cdata = self . get_crate_data ( trait_def_id. krate ) ;
249- decoder:: is_defaulted_trait ( & * cdata, trait_def_id. index )
249+ decoder:: is_defaulted_trait ( & cdata, trait_def_id. index )
250250 }
251251
252252 fn is_impl ( & self , did : DefId ) -> bool
253253 {
254254 let cdata = self . get_crate_data ( did. krate ) ;
255- decoder:: is_impl ( & * cdata, did. index )
255+ decoder:: is_impl ( & cdata, did. index )
256256 }
257257
258258 fn is_default_impl ( & self , impl_did : DefId ) -> bool {
259259 let cdata = self . get_crate_data ( impl_did. krate ) ;
260- decoder:: is_default_impl ( & * cdata, impl_did. index )
260+ decoder:: is_default_impl ( & cdata, impl_did. index )
261261 }
262262
263263 fn is_extern_item ( & self , tcx : & ty:: ctxt < ' tcx > , did : DefId ) -> bool {
264264 let cdata = self . get_crate_data ( did. krate ) ;
265- decoder:: is_extern_item ( & * cdata, did. index , tcx)
265+ decoder:: is_extern_item ( & cdata, did. index , tcx)
266266 }
267267
268268 fn is_static_method ( & self , def : DefId ) -> bool
269269 {
270270 let cdata = self . get_crate_data ( def. krate ) ;
271- decoder:: is_static_method ( & * cdata, def. index )
271+ decoder:: is_static_method ( & cdata, def. index )
272272 }
273273
274274 fn is_statically_included_foreign_item ( & self , id : ast:: NodeId ) -> bool
@@ -278,7 +278,7 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
278278
279279 fn is_typedef ( & self , did : DefId ) -> bool {
280280 let cdata = self . get_crate_data ( did. krate ) ;
281- decoder:: is_typedef ( & * cdata, did. index )
281+ decoder:: is_typedef ( & cdata, did. index )
282282 }
283283
284284 fn dylib_dependency_formats ( & self , cnum : ast:: CrateNum )
@@ -292,7 +292,7 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
292292 {
293293 let mut result = vec ! [ ] ;
294294 let crate_data = self . get_crate_data ( cnum) ;
295- decoder:: each_lang_item ( & * crate_data, |did, lid| {
295+ decoder:: each_lang_item ( & crate_data, |did, lid| {
296296 result. push ( ( did, lid) ) ; true
297297 } ) ;
298298 result
@@ -302,7 +302,7 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
302302 -> Vec < lang_items:: LangItem >
303303 {
304304 let cdata = self . get_crate_data ( cnum) ;
305- decoder:: get_missing_lang_items ( & * cdata)
305+ decoder:: get_missing_lang_items ( & cdata)
306306 }
307307
308308 fn is_staged_api ( & self , cnum : ast:: CrateNum ) -> bool
@@ -339,7 +339,7 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
339339 fn crate_struct_field_attrs ( & self , cnum : ast:: CrateNum )
340340 -> FnvHashMap < DefId , Vec < ast:: Attribute > >
341341 {
342- decoder:: get_struct_field_attrs ( & * self . get_crate_data ( cnum) )
342+ decoder:: get_struct_field_attrs ( & self . get_crate_data ( cnum) )
343343 }
344344
345345 fn plugin_registrar_fn ( & self , cnum : ast:: CrateNum ) -> Option < DefId >
@@ -354,19 +354,19 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
354354 fn native_libraries ( & self , cnum : ast:: CrateNum ) -> Vec < ( NativeLibraryKind , String ) >
355355 {
356356 let cdata = self . get_crate_data ( cnum) ;
357- decoder:: get_native_libraries ( & * cdata)
357+ decoder:: get_native_libraries ( & cdata)
358358 }
359359
360360 fn reachable_ids ( & self , cnum : ast:: CrateNum ) -> Vec < DefId >
361361 {
362362 let cdata = self . get_crate_data ( cnum) ;
363- decoder:: get_reachable_ids ( & * cdata)
363+ decoder:: get_reachable_ids ( & cdata)
364364 }
365365
366366 fn def_path ( & self , def : DefId ) -> hir_map:: DefPath
367367 {
368368 let cdata = self . get_crate_data ( def. krate ) ;
369- let path = decoder:: def_path ( & * cdata, def. index ) ;
369+ let path = decoder:: def_path ( & cdata, def. index ) ;
370370 let local_path = cdata. local_def_path ( ) ;
371371 local_path. into_iter ( ) . chain ( path) . collect ( )
372372 }
@@ -385,13 +385,13 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
385385 fn tuple_struct_definition_if_ctor ( & self , did : DefId ) -> Option < DefId >
386386 {
387387 let cdata = self . get_crate_data ( did. krate ) ;
388- decoder:: get_tuple_struct_definition_if_ctor ( & * cdata, did. index )
388+ decoder:: get_tuple_struct_definition_if_ctor ( & cdata, did. index )
389389 }
390390
391391 fn struct_field_names ( & self , def : DefId ) -> Vec < ast:: Name >
392392 {
393393 let cdata = self . get_crate_data ( def. krate ) ;
394- decoder:: get_struct_field_names ( & self . intr , & * cdata, def. index )
394+ decoder:: get_struct_field_names ( & self . intr , & cdata, def. index )
395395 }
396396
397397 fn item_children ( & self , def_id : DefId ) -> Vec < ChildItem >
@@ -400,7 +400,7 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
400400 let crate_data = self . get_crate_data ( def_id. krate ) ;
401401 let get_crate_data = |cnum| self . get_crate_data ( cnum) ;
402402 decoder:: each_child_of_item (
403- self . intr . clone ( ) , & * crate_data,
403+ self . intr . clone ( ) , & crate_data,
404404 def_id. index , get_crate_data,
405405 |def, name, vis| result. push ( ChildItem {
406406 def : def,
@@ -416,7 +416,7 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
416416 let crate_data = self . get_crate_data ( cnum) ;
417417 let get_crate_data = |cnum| self . get_crate_data ( cnum) ;
418418 decoder:: each_top_level_item_of_crate (
419- self . intr . clone ( ) , & * crate_data, get_crate_data,
419+ self . intr . clone ( ) , & crate_data, get_crate_data,
420420 |def, name, vis| result. push ( ChildItem {
421421 def : def,
422422 name : name,
@@ -430,18 +430,18 @@ impl<'tcx> CrateStore<'tcx> for cstore::CStore {
430430 {
431431 let cdata = self . get_crate_data ( def. krate ) ;
432432 let decode_inlined_item = Box :: new ( astencode:: decode_inlined_item) ;
433- decoder:: maybe_get_item_ast ( & * cdata, tcx, def. index , decode_inlined_item)
433+ decoder:: maybe_get_item_ast ( & cdata, tcx, def. index , decode_inlined_item)
434434 }
435435
436436 fn maybe_get_item_mir ( & self , tcx : & ty:: ctxt < ' tcx > , def : DefId )
437437 -> Option < Mir < ' tcx > > {
438438 let cdata = self . get_crate_data ( def. krate ) ;
439- decoder:: maybe_get_item_mir ( & * cdata, tcx, def. index )
439+ decoder:: maybe_get_item_mir ( & cdata, tcx, def. index )
440440 }
441441
442442 fn is_item_mir_available ( & self , def : DefId ) -> bool {
443443 let cdata = self . get_crate_data ( def. krate ) ;
444- decoder:: is_item_mir_available ( & * cdata, def. index )
444+ decoder:: is_item_mir_available ( & cdata, def. index )
445445 }
446446
447447 fn crates ( & self ) -> Vec < ast:: CrateNum >
0 commit comments