提交 394d28ca 编写于 作者: C Corey Richardson

Fix old .each usage

上级 f8ae9b0a
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册