Skip to content

Commit 394d28c

Browse files
committed
Fix old .each usage
1 parent f8ae9b0 commit 394d28c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/metadata/loader.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

142142
pub 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 {

0 commit comments

Comments
 (0)