about summary refs log tree commit diff
path: root/src/rustc/middle/tstate/states.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rustc/middle/tstate/states.rs')
-rw-r--r--src/rustc/middle/tstate/states.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rustc/middle/tstate/states.rs b/src/rustc/middle/tstate/states.rs
index 4883422a908..64748a43b99 100644
--- a/src/rustc/middle/tstate/states.rs
+++ b/src/rustc/middle/tstate/states.rs
@@ -54,7 +54,7 @@ fn handle_move_or_copy(fcx: fn_ctxt, post: poststate, rhs_path: @path,
     }
 }
 
-fn seq_states(fcx: fn_ctxt, pres: prestate, bindings: [binding]) ->
+fn seq_states(fcx: fn_ctxt, pres: prestate, bindings: [binding]/~) ->
    {changed: bool, post: poststate} {
     let mut changed = false;
     let mut post = tritv_clone(pres);
@@ -166,7 +166,7 @@ fn find_pre_post_state_two(fcx: fn_ctxt, pres: prestate, lhs: @expr,
 }
 
 fn find_pre_post_state_call(fcx: fn_ctxt, pres: prestate, a: @expr,
-                            id: node_id, ops: [init_op], bs: [@expr],
+                            id: node_id, ops: [init_op]/~, bs: [@expr]/~,
                             cf: ret_style) -> bool {
     let mut changed = find_pre_post_state_expr(fcx, pres, a);
     // FIXME (#2178): This could be a typestate constraint (except we're
@@ -183,8 +183,8 @@ fn find_pre_post_state_call(fcx: fn_ctxt, pres: prestate, a: @expr,
 }
 
 fn find_pre_post_state_exprs(fcx: fn_ctxt, pres: prestate, id: node_id,
-                             ops: [init_op], es: [@expr], cf: ret_style) ->
-   bool {
+                             ops: [init_op]/~, es: [@expr]/~,
+                             cf: ret_style) -> bool {
     let rs = seq_states(fcx, pres, arg_bindings(ops, es));
     let mut changed = rs.changed | set_prestate_ann(fcx.ccx, id, pres);
     /* if this is a failing call, it sets everything as initialized */
@@ -404,7 +404,7 @@ fn find_pre_post_state_expr(fcx: fn_ctxt, pres: prestate, e: @expr) -> bool {
 
         /* conservative approximation: if a loop contains a break
            or cont, we assume nothing about the poststate */
-        /* which is still unsound -- see [Break-unsound] */
+        /* which is still unsound -- see [Break-unsound]/~ */
         if has_nonlocal_exits(body) {
             ret changed | set_poststate_ann(fcx.ccx, e.id, pres);
         } else {
@@ -423,7 +423,7 @@ fn find_pre_post_state_expr(fcx: fn_ctxt, pres: prestate, e: @expr) -> bool {
         /* conservative approximation: if a loop contains a break
            or cont, we assume nothing about the poststate (so, we
            set all predicates to "don't know" */
-        /* which is still unsound -- see [Break-unsound] */
+        /* which is still unsound -- see [Break-unsound]/~ */
         if may_break(body) {
                 /* Only do this if there are *breaks* not conts.
                  An infinite loop with conts is still an infinite loop.