@@ -152,7 +152,7 @@ struct Registers {
152
152
153
153
#[ cfg( target_arch = "x86" ) ]
154
154
fn new_regs ( ) -> ~Registers {
155
- ~ Registers {
155
+ box Registers {
156
156
eax : 0 , ebx : 0 , ecx : 0 , edx : 0 ,
157
157
ebp : 0 , esi : 0 , edi : 0 , esp : 0 ,
158
158
cs : 0 , ds : 0 , ss : 0 , es : 0 , fs : 0 , gs : 0 ,
@@ -190,9 +190,9 @@ type Registers = [uint, ..34];
190
190
type Registers = [ uint , ..22 ] ;
191
191
192
192
#[ cfg( windows, target_arch = "x86_64" ) ]
193
- fn new_regs ( ) -> ~Registers { ~ ( [ 0 , .. 34 ] ) }
193
+ fn new_regs ( ) -> ~Registers { box [ 0 , .. 34 ] }
194
194
#[ cfg( not( windows) , target_arch = "x86_64" ) ]
195
- fn new_regs ( ) -> ~Registers { ~ ( [ 0 , .. 22 ] ) }
195
+ fn new_regs ( ) -> ~Registers { box { let v = [ 0 , .. 22 ] ; v } }
196
196
197
197
#[ cfg( target_arch = "x86_64" ) ]
198
198
fn initialize_call_frame ( regs : & mut Registers , fptr : InitFn , arg : uint ,
@@ -241,7 +241,7 @@ fn initialize_call_frame(regs: &mut Registers, fptr: InitFn, arg: uint,
241
241
type Registers = [ uint , ..32 ] ;
242
242
243
243
#[ cfg( target_arch = "arm" ) ]
244
- fn new_regs ( ) -> ~Registers { ~ ( [ 0 , .. 32 ] ) }
244
+ fn new_regs ( ) -> ~Registers { box { [ 0 , .. 32 ] } }
245
245
246
246
#[ cfg( target_arch = "arm" ) ]
247
247
fn initialize_call_frame ( regs : & mut Registers , fptr : InitFn , arg : uint ,
@@ -270,7 +270,7 @@ fn initialize_call_frame(regs: &mut Registers, fptr: InitFn, arg: uint,
270
270
type Registers = [ uint , ..32 ] ;
271
271
272
272
#[ cfg( target_arch = "mips" ) ]
273
- fn new_regs ( ) -> ~Registers { ~ ( [ 0 , .. 32 ] ) }
273
+ fn new_regs ( ) -> ~Registers { box [ 0 , .. 32 ] }
274
274
275
275
#[ cfg( target_arch = "mips" ) ]
276
276
fn initialize_call_frame ( regs : & mut Registers , fptr : InitFn , arg : uint ,
0 commit comments