about summary refs log tree commit diff
path: root/src/rustc/front
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-09-26 16:27:12 -0700
committerBrian Anderson <banderson@mozilla.com>2012-09-26 20:15:23 -0700
commite8fe718bfd4d88b0bc59117326a14a10f2598568 (patch)
tree5fdc1f4bfbd51f490ee30a846491f4c0e6dfac4b /src/rustc/front
parent64de6d638da71f7b3a55d663b194b95f7f06d6c8 (diff)
downloadrust-e8fe718bfd4d88b0bc59117326a14a10f2598568.tar.gz
rust-e8fe718bfd4d88b0bc59117326a14a10f2598568.zip
core: Replace map/map_default with map_ref/map_default_ref
Diffstat (limited to 'src/rustc/front')
-rw-r--r--src/rustc/front/config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustc/front/config.rs b/src/rustc/front/config.rs
index 4c262e3dc65..7e0d9ec2e86 100644
--- a/src/rustc/front/config.rs
+++ b/src/rustc/front/config.rs
@@ -104,7 +104,7 @@ fn fold_block(cx: ctxt, b: ast::blk_, fld: fold::ast_fold) ->
     let filtered_stmts = vec::filter_map(b.stmts, filter);
     return {view_items: b.view_items,
          stmts: vec::map(filtered_stmts, |x| fld.fold_stmt(*x)),
-         expr: option::map(&b.expr, |x| fld.fold_expr(x)),
+         expr: option::map(&b.expr, |x| fld.fold_expr(*x)),
          id: b.id,
          rules: b.rules};
 }