From 9cf271fe96b474d514b1052935db70c4056cf076 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 18 Sep 2012 21:41:37 -0700 Subject: De-mode vec::each() and many of the str iteration routines Note that the method foo.each() is not de-moded, nor the other vec routines. --- src/libsyntax/ast_map.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/libsyntax/ast_map.rs') diff --git a/src/libsyntax/ast_map.rs b/src/libsyntax/ast_map.rs index d9a7543eed4..c110af491fc 100644 --- a/src/libsyntax/ast_map.rs +++ b/src/libsyntax/ast_map.rs @@ -293,8 +293,10 @@ fn map_struct_def(struct_def: @ast::struct_def, parent_node: ast_node, } let d_id = ast_util::local_def(id); let p = extend(cx, ident); - // only need to handle methods - do vec::iter(struct_def.methods) |m| { map_method(d_id, p, m, cx); } + // only need to handle methods + for vec::each(struct_def.methods) |m| { + map_method(d_id, p, *m, cx); + } } fn map_view_item(vi: @view_item, cx: ctx, _v: vt) { -- cgit 1.4.1-3-g733a5