about summary refs log tree commit diff
path: root/src/rustc/middle/trans/impl.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-09-04 13:29:32 -0700
committerBrian Anderson <banderson@mozilla.com>2012-09-04 15:47:04 -0700
commit200959d7cef647b34e1d7cf7f4ed2c28b65fc7dc (patch)
treed2a2e790b95f73e30320d1e49b0566423ecb17a1 /src/rustc/middle/trans/impl.rs
parentef880f22450c4f7e455f431ff4603f90d443b545 (diff)
downloadrust-200959d7cef647b34e1d7cf7f4ed2c28b65fc7dc.tar.gz
rust-200959d7cef647b34e1d7cf7f4ed2c28b65fc7dc.zip
Remove 'with'
Diffstat (limited to 'src/rustc/middle/trans/impl.rs')
-rw-r--r--src/rustc/middle/trans/impl.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rustc/middle/trans/impl.rs b/src/rustc/middle/trans/impl.rs
index af5dcfe3f6b..81e57898091 100644
--- a/src/rustc/middle/trans/impl.rs
+++ b/src/rustc/middle/trans/impl.rs
@@ -120,8 +120,8 @@ fn trans_method_callee(bcx: block, callee_id: ast::node_id,
 
         let {bcx, val} = trans_self_arg(bcx, self, mentry);
         {env: self_env(val, node_id_type(bcx, self.id), None,
-                       mentry.self_mode)
-         with lval_static_fn(bcx, did, callee_id)}
+                       mentry.self_mode),
+         .. lval_static_fn(bcx, did, callee_id)}
       }
       typeck::method_param({trait_id:trait_id, method_num:off,
                             param_num:p, bound_num:b}) => {
@@ -186,8 +186,8 @@ fn trans_static_method_callee(bcx: block, method_id: ast::def_id,
                                         Some(sub_origins));
         {env: null_env,
          val: PointerCast(bcx, lval.val, T_ptr(type_of_fn_from_ty(
-             ccx, node_id_type(bcx, callee_id))))
-         with lval}
+             ccx, node_id_type(bcx, callee_id)))),
+         .. lval}
       }
       _ => {
         fail ~"vtable_param left in monomorphized function's vtable substs";
@@ -255,8 +255,8 @@ fn trans_monomorphized_callee(bcx: block, callee_id: ast::node_id,
         {env: self_env(val, node_id_type(bcx, base.id),
                        None, mentry.self_mode),
          val: PointerCast(bcx, lval.val, T_ptr(type_of_fn_from_ty(
-             ccx, node_id_type(bcx, callee_id))))
-         with lval}
+             ccx, node_id_type(bcx, callee_id)))),
+         .. lval}
       }
       typeck::vtable_trait(*) => {
         let {bcx, val} = trans_temp_expr(bcx, base);