@@ -377,7 +377,7 @@ fn encode_reexported_static_base_methods(ecx: &EncodeContext,
377
377
let impl_items = ecx. tcx . impl_items . borrow ( ) ;
378
378
match ecx. tcx . inherent_impls . borrow ( ) . get ( & exp. def_id ) {
379
379
Some ( implementations) => {
380
- for base_impl_did in & * * implementations {
380
+ for base_impl_did in implementations. iter ( ) {
381
381
for & method_did in impl_items. get ( base_impl_did) . unwrap ( ) {
382
382
let impl_item = ty:: impl_or_trait_item (
383
383
ecx. tcx ,
@@ -403,7 +403,7 @@ fn encode_reexported_static_trait_methods(ecx: &EncodeContext,
403
403
-> bool {
404
404
match ecx. tcx . trait_items_cache . borrow ( ) . get ( & exp. def_id ) {
405
405
Some ( trait_items) => {
406
- for trait_item in & * * trait_items {
406
+ for trait_item in trait_items. iter ( ) {
407
407
if let ty:: MethodTraitItem ( ref m) = * trait_item {
408
408
encode_reexported_static_method ( rbml_w,
409
409
exp,
@@ -981,7 +981,7 @@ fn encode_inherent_implementations(ecx: &EncodeContext,
981
981
match ecx. tcx . inherent_impls . borrow ( ) . get ( & def_id) {
982
982
None => { }
983
983
Some ( implementations) => {
984
- for & impl_def_id in & * * implementations {
984
+ for & impl_def_id in implementations. iter ( ) {
985
985
rbml_w. start_tag ( tag_items_data_item_inherent_impl) ;
986
986
encode_def_id ( rbml_w, impl_def_id) ;
987
987
rbml_w. end_tag ( ) ;
@@ -1348,7 +1348,7 @@ fn encode_info_for_item(ecx: &EncodeContext,
1348
1348
encode_attributes ( rbml_w, & item. attrs ) ;
1349
1349
encode_visibility ( rbml_w, vis) ;
1350
1350
encode_stability ( rbml_w, stab) ;
1351
- for & method_def_id in & * ty:: trait_item_def_ids ( tcx, def_id) {
1351
+ for & method_def_id in ty:: trait_item_def_ids ( tcx, def_id) . iter ( ) {
1352
1352
rbml_w. start_tag ( tag_item_trait_item) ;
1353
1353
match method_def_id {
1354
1354
ty:: ConstTraitItemId ( const_def_id) => {
@@ -1822,8 +1822,8 @@ fn encode_lang_items(ecx: &EncodeContext, rbml_w: &mut Encoder) {
1822
1822
fn encode_native_libraries ( ecx : & EncodeContext , rbml_w : & mut Encoder ) {
1823
1823
rbml_w. start_tag ( tag_native_libraries) ;
1824
1824
1825
- for & ( ref lib, kind) in & * ecx. tcx . sess . cstore . get_used_libraries ( )
1826
- . borrow ( ) {
1825
+ for & ( ref lib, kind) in ecx. tcx . sess . cstore . get_used_libraries ( )
1826
+ . borrow ( ) . iter ( ) {
1827
1827
match kind {
1828
1828
cstore:: NativeStatic => { } // these libraries are not propagated
1829
1829
cstore:: NativeFramework | cstore:: NativeUnknown => {
0 commit comments