]> git.lizzy.rs Git - rust.git/commitdiff
Partially de-vec-mut librustc
authorBen Striegel <ben.striegel@gmail.com>
Fri, 8 Feb 2013 04:23:43 +0000 (23:23 -0500)
committerBen Striegel <ben.striegel@gmail.com>
Wed, 13 Feb 2013 17:47:43 +0000 (12:47 -0500)
src/librustc/middle/trans/cabi_x86_64.rs
src/librustc/middle/typeck/check/method.rs

index d3eb2157ee340db725d57621b1861f7b4c2d981b..043ee4115270a0252abe8fbad6bd411a6b99b75e 100644 (file)
@@ -127,13 +127,13 @@ fn ty_size(ty: TypeRef) -> uint {
         }
     }
 
-    fn all_mem(cls: &[mut x86_64_reg_class]) {
+    fn all_mem(cls: &mut [x86_64_reg_class]) {
         for uint::range(0, cls.len()) |i| {
             cls[i] = memory_class;
         }
     }
 
-    fn unify(cls: &[mut x86_64_reg_class],
+    fn unify(cls: &mut [x86_64_reg_class],
              i: uint,
              newv: x86_64_reg_class) {
         if cls[i] == newv {
@@ -159,7 +159,7 @@ fn unify(cls: &[mut x86_64_reg_class],
     }
 
     fn classify_struct(tys: &[TypeRef],
-                       cls: &[mut x86_64_reg_class], i: uint,
+                       cls: &mut [x86_64_reg_class], i: uint,
                        off: uint) {
         let mut field_off = off;
         for vec::each(tys) |ty| {
@@ -170,7 +170,7 @@ fn classify_struct(tys: &[TypeRef],
     }
 
     fn classify(ty: TypeRef,
-                cls: &[mut x86_64_reg_class], ix: uint,
+                cls: &mut [x86_64_reg_class], ix: uint,
                 off: uint) {
         unsafe {
             let t_align = ty_align(ty);
@@ -220,7 +220,7 @@ fn classify(ty: TypeRef,
         }
     }
 
-    fn fixup(ty: TypeRef, cls: &[mut x86_64_reg_class]) {
+    fn fixup(ty: TypeRef, cls: &mut [x86_64_reg_class]) {
         unsafe {
             let mut i = 0u;
             let llty = llvm::LLVMGetTypeKind(ty) as int;
index 463ae3201a4475c39043265d4f144e93874c43f9..45b0fa962ad91e5f4a00c70b89a45bda15ce7ba4 100644 (file)
@@ -779,7 +779,7 @@ fn consider_reborrow(&self,
         /*!
          *
          * In the event that we are invoking a method with a receiver
-         * of a linear borrowed type like `&mut T` or `&[mut T]`,
+         * of a linear borrowed type like `&mut T` or `&mut [T]`,
          * we will "reborrow" the receiver implicitly.  For example, if
          * you have a call `r.inc()` and where `r` has type `&mut T`,
          * then we treat that like `(&mut *r).inc()`.  This avoids