File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ fn find_library_crate_aux(
128128 cx. diag . span_err (
129129 cx. span , fmt ! ( "multiple matching crates for `%s`" , crate_name) ) ;
130130 cx. diag . handler ( ) . note ( "candidates:" ) ;
131- for matches. each |& ( ident, data) | {
131+ for matches. iter ( ) . advance |& ( ident, data) | {
132132 cx. diag. handler( ) . note( fmt ! ( "path: %s" , ident) ) ;
133133 let attrs = decoder:: get_crate_attributes( data) ;
134134 note_linkage_attrs( cx. intr, cx. diag, attrs) ;
@@ -140,7 +140,7 @@ fn find_library_crate_aux(
140140}
141141
142142pub fn crate_name_from_metas( metas: & [ @ast:: meta_item] ) -> @str {
143- for metas. each |m| {
143+ for metas. iter ( ) . advance |m| {
144144 match m. node {
145145 ast : : meta_name_value( s, ref l) if s == @"name" =>
146146 match l. node {
You can’t perform that action at this time.
0 commit comments