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(
128
128
cx. diag . span_err (
129
129
cx. span , fmt ! ( "multiple matching crates for `%s`" , crate_name) ) ;
130
130
cx. diag . handler ( ) . note ( "candidates:" ) ;
131
- for matches. each |& ( ident, data) | {
131
+ for matches. iter ( ) . advance |& ( ident, data) | {
132
132
cx. diag. handler( ) . note( fmt ! ( "path: %s" , ident) ) ;
133
133
let attrs = decoder:: get_crate_attributes( data) ;
134
134
note_linkage_attrs( cx. intr, cx. diag, attrs) ;
@@ -140,7 +140,7 @@ fn find_library_crate_aux(
140
140
}
141
141
142
142
pub fn crate_name_from_metas( metas: & [ @ast:: meta_item] ) -> @str {
143
- for metas. each |m| {
143
+ for metas. iter ( ) . advance |m| {
144
144
match m. node {
145
145
ast : : meta_name_value( s, ref l) if s == @"name" =>
146
146
match l. node {
You can’t perform that action at this time.
0 commit comments