]> git.lizzy.rs Git - rust.git/commitdiff
RIMOV, round 8
authorBen Striegel <ben.striegel@gmail.com>
Wed, 30 Jan 2013 03:14:23 +0000 (22:14 -0500)
committerBen Striegel <ben.striegel@gmail.com>
Thu, 31 Jan 2013 04:19:08 +0000 (23:19 -0500)
find ./ -type f -name "*.rs" -exec sed -i "s/  \([a-zA-Z_]\+\): ~\[mut /
mut \1: ~\[/g" {} \;

src/librustc/middle/liveness.rs
src/librustc/middle/trans/type_use.rs
src/libstd/rope.rs
src/libstd/sha1.rs
src/libsyntax/print/pp.rs

index 90bcdb54e19aebe1263115732518c5c03b17cb96..e725f8629fb1f996b1e0f340ed8e49418d2a77d0 100644 (file)
@@ -640,8 +640,8 @@ struct Liveness {
     tcx: ty::ctxt,
     ir: @IrMaps,
     s: Specials,
-    successors: ~[mut LiveNode],
-    users: ~[mut users],
+    mut successors: ~[LiveNode],
+    mut users: ~[users],
     // The list of node IDs for the nested loop scopes
     // we're in.
     loop_scope: DVec<node_id>,
index c19db4a75b9ddabd5a604208d69b60425174b339..c11d4f5ebc047458dcbd546cc57606a0efbafe4a 100644 (file)
@@ -49,7 +49,7 @@
                                     take/drop glue */
 pub const use_tydesc: uint = 2u; /* Takes the tydesc, or compares */
 
-pub type ctx = {ccx: @crate_ctxt, uses: ~[mut type_uses]};
+pub type ctx = {ccx: @crate_ctxt, mut uses: ~[type_uses]};
 
 pub fn type_uses_for(ccx: @crate_ctxt, fn_id: def_id, n_tps: uint)
     -> ~[type_uses] {
index 977008e5995f1e192bbe2c30bb46de1dd599f728..6bd9c825d4346647568afde053d6555c7d7432db 100644 (file)
@@ -1158,7 +1158,7 @@ pub mod leaf_iterator {
         use core::vec;
 
         pub struct T {
-            stack: ~[mut @Node],
+            mut stack: ~[@Node],
             mut stackpos: int,
         }
 
index c2599864c90c14ce630bc733621ab66b449d46c7..4a7e67f22b99ae20031135235df124a385360d48 100644 (file)
@@ -70,7 +70,7 @@ pub fn sha1() -> Sha1 {
         {h: ~[mut u32],
          mut len_low: u32,
          mut len_high: u32,
-         msg_block: ~[mut u8],
+         mut msg_block: ~[u8],
          mut msg_block_idx: uint,
          mut computed: bool,
          work_buf: @~[mut u32]};
index 8174240f68a4193479889301156ec878a036cce4..ee1684db1f2f5c733adbfa09127a8a3385a4aca3 100644 (file)
@@ -254,8 +254,8 @@ pub fn mk_printer(out: io::Writer, linewidth: uint) -> printer {
     mut space: int, // number of spaces left on line
     mut left: uint, // index of left side of input stream
     mut right: uint, // index of right side of input stream
-    token: ~[mut token], // ring-buffr stream goes through
-    size: ~[mut int], // ring-buffer of calculated sizes
+    mut token: ~[token], // ring-buffr stream goes through
+    mut size: ~[int], // ring-buffer of calculated sizes
     mut left_total: int, // running size of stream "...left"
     mut right_total: int, // running size of stream "...right"
     // pseudo-stack, really a ring too. Holds the