@@ -377,7 +377,7 @@ fn encode_reexported_static_base_methods(ecx: &EncodeContext,
377377 let impl_items = ecx. tcx . impl_items . borrow ( ) ;
378378 match ecx. tcx . inherent_impls . borrow ( ) . get ( & exp. def_id ) {
379379 Some ( implementations) => {
380- for base_impl_did in & * * implementations {
380+ for base_impl_did in implementations. iter ( ) {
381381 for & method_did in impl_items. get ( base_impl_did) . unwrap ( ) {
382382 let impl_item = ty:: impl_or_trait_item (
383383 ecx. tcx ,
@@ -403,7 +403,7 @@ fn encode_reexported_static_trait_methods(ecx: &EncodeContext,
403403 -> bool {
404404 match ecx. tcx . trait_items_cache . borrow ( ) . get ( & exp. def_id ) {
405405 Some ( trait_items) => {
406- for trait_item in & * * trait_items {
406+ for trait_item in trait_items. iter ( ) {
407407 if let ty:: MethodTraitItem ( ref m) = * trait_item {
408408 encode_reexported_static_method ( rbml_w,
409409 exp,
@@ -981,7 +981,7 @@ fn encode_inherent_implementations(ecx: &EncodeContext,
981981 match ecx. tcx . inherent_impls . borrow ( ) . get ( & def_id) {
982982 None => { }
983983 Some ( implementations) => {
984- for & impl_def_id in & * * implementations {
984+ for & impl_def_id in implementations. iter ( ) {
985985 rbml_w. start_tag ( tag_items_data_item_inherent_impl) ;
986986 encode_def_id ( rbml_w, impl_def_id) ;
987987 rbml_w. end_tag ( ) ;
@@ -1348,7 +1348,7 @@ fn encode_info_for_item(ecx: &EncodeContext,
13481348 encode_attributes ( rbml_w, & item. attrs ) ;
13491349 encode_visibility ( rbml_w, vis) ;
13501350 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 ( ) {
13521352 rbml_w. start_tag ( tag_item_trait_item) ;
13531353 match method_def_id {
13541354 ty:: ConstTraitItemId ( const_def_id) => {
@@ -1822,8 +1822,8 @@ fn encode_lang_items(ecx: &EncodeContext, rbml_w: &mut Encoder) {
18221822fn encode_native_libraries ( ecx : & EncodeContext , rbml_w : & mut Encoder ) {
18231823 rbml_w. start_tag ( tag_native_libraries) ;
18241824
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 ( ) {
18271827 match kind {
18281828 cstore:: NativeStatic => { } // these libraries are not propagated
18291829 cstore:: NativeFramework | cstore:: NativeUnknown => {
0 commit comments