From 394d28cac54b936bf5c3d1420229b52156744e7f Mon Sep 17 00:00:00 2001 From: Corey Richardson Date: Wed, 26 Jun 2013 18:22:15 -0400 Subject: [PATCH] Fix old .each usage --- src/librustc/metadata/loader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc/metadata/loader.rs b/src/librustc/metadata/loader.rs index 17aad969e32..9e0d6fb8e3a 100644 --- a/src/librustc/metadata/loader.rs +++ b/src/librustc/metadata/loader.rs @@ -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); @@ -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 {