Skip to content

Commit e58c812

Browse files
committed
Partially de-vec-mut librustc
1 parent 6016214 commit e58c812

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/librustc/middle/trans/cabi_x86_64.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@ fn classify_ty(ty: TypeRef) -> ~[x86_64_reg_class] {
127127
}
128128
}
129129
130-
fn all_mem(cls: &[mut x86_64_reg_class]) {
130+
fn all_mem(cls: &mut [x86_64_reg_class]) {
131131
for uint::range(0, cls.len()) |i| {
132132
cls[i] = memory_class;
133133
}
134134
}
135135
136-
fn unify(cls: &[mut x86_64_reg_class],
136+
fn unify(cls: &mut [x86_64_reg_class],
137137
i: uint,
138138
newv: x86_64_reg_class) {
139139
if cls[i] == newv {
@@ -159,7 +159,7 @@ fn classify_ty(ty: TypeRef) -> ~[x86_64_reg_class] {
159159
}
160160
161161
fn classify_struct(tys: &[TypeRef],
162-
cls: &[mut x86_64_reg_class], i: uint,
162+
cls: &mut [x86_64_reg_class], i: uint,
163163
off: uint) {
164164
let mut field_off = off;
165165
for vec::each(tys) |ty| {
@@ -170,7 +170,7 @@ fn classify_ty(ty: TypeRef) -> ~[x86_64_reg_class] {
170170
}
171171
172172
fn classify(ty: TypeRef,
173-
cls: &[mut x86_64_reg_class], ix: uint,
173+
cls: &mut [x86_64_reg_class], ix: uint,
174174
off: uint) {
175175
unsafe {
176176
let t_align = ty_align(ty);
@@ -220,7 +220,7 @@ fn classify_ty(ty: TypeRef) -> ~[x86_64_reg_class] {
220220
}
221221
}
222222
223-
fn fixup(ty: TypeRef, cls: &[mut x86_64_reg_class]) {
223+
fn fixup(ty: TypeRef, cls: &mut [x86_64_reg_class]) {
224224
unsafe {
225225
let mut i = 0u;
226226
let llty = llvm::LLVMGetTypeKind(ty) as int;

src/librustc/middle/typeck/check/method.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ pub impl LookupContext {
779779
/*!
780780
*
781781
* In the event that we are invoking a method with a receiver
782-
* of a linear borrowed type like `&mut T` or `&[mut T]`,
782+
* of a linear borrowed type like `&mut T` or `&mut [T]`,
783783
* we will "reborrow" the receiver implicitly. For example, if
784784
* you have a call `r.inc()` and where `r` has type `&mut T`,
785785
* then we treat that like `(&mut *r).inc()`. This avoids

0 commit comments

Comments
 (0)