Skip to content

Commit 7f27881

Browse files
committed
auto merge of #5622 : yichoi/rust/pull-0329, r=catamorphism
libcore: language change minor fix for ARM & MIPS fix context.rs
2 parents 848ffe2 + e6f2d7a commit 7f27881

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/libcore/rt/context.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ fn initialize_call_frame(regs: &mut Registers, fptr: *c_void, arg: *c_void, sp:
160160
type Registers = [uint, ..32];
161161

162162
#[cfg(target_arch = "arm")]
163-
fn new_regs() -> ~Registers { ~[0, .. 32] }
163+
fn new_regs() -> ~Registers { ~([0, .. 32]) }
164164

165165
#[cfg(target_arch = "arm")]
166166
fn initialize_call_frame(regs: &mut Registers, fptr: *c_void, arg: *c_void, sp: *mut uint) {
@@ -178,7 +178,7 @@ fn initialize_call_frame(regs: &mut Registers, fptr: *c_void, arg: *c_void, sp:
178178
type Registers = [uint, ..32];
179179

180180
#[cfg(target_arch = "mips")]
181-
fn new_regs() -> ~Registers { ~[0, .. 32] }
181+
fn new_regs() -> ~Registers { ~([0, .. 32]) }
182182

183183
#[cfg(target_arch = "mips")]
184184
fn initialize_call_frame(regs: &mut Registers, fptr: *c_void, arg: *c_void, sp: *mut uint) {

0 commit comments

Comments
 (0)