Skip to content

Commit

Permalink
Fix old .each usage
Browse files Browse the repository at this point in the history
  • Loading branch information
emberian committed Jun 26, 2013
1 parent f8ae9b0 commit 394d28c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc/metadata/loader.rs
Expand Up @@ -128,7 +128,7 @@ fn find_library_crate_aux(
cx.diag.span_err(
cx.span, fmt!("multiple matching crates for `%s`", crate_name));
cx.diag.handler().note("candidates:");
for matches.each |&(ident, data)| {
for matches.iter().advance |&(ident, data)| {
cx.diag.handler().note(fmt!("path: %s", ident));
let attrs = decoder::get_crate_attributes(data);
note_linkage_attrs(cx.intr, cx.diag, attrs);
Expand All @@ -140,7 +140,7 @@ fn find_library_crate_aux(
}

pub fn crate_name_from_metas(metas: &[@ast::meta_item]) -> @str {
for metas.each |m| {
for metas.iter().advance |m| {
match m.node {
ast::meta_name_value(s, ref l) if s == @"name" =>
match l.node {
Expand Down

0 comments on commit 394d28c

Please sign in to comment.