@@ -152,7 +152,7 @@ struct Registers {
152152
153153#[ cfg( target_arch = "x86" ) ]
154154fn new_regs ( ) -> ~Registers {
155- ~ Registers {
155+ box Registers {
156156 eax : 0 , ebx : 0 , ecx : 0 , edx : 0 ,
157157 ebp : 0 , esi : 0 , edi : 0 , esp : 0 ,
158158 cs : 0 , ds : 0 , ss : 0 , es : 0 , fs : 0 , gs : 0 ,
@@ -190,9 +190,9 @@ type Registers = [uint, ..34];
190190type Registers = [ uint , ..22 ] ;
191191
192192#[ cfg( windows, target_arch = "x86_64" ) ]
193- fn new_regs ( ) -> ~Registers { ~ ( [ 0 , .. 34 ] ) }
193+ fn new_regs ( ) -> ~Registers { box [ 0 , .. 34 ] }
194194#[ 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 } }
196196
197197#[ cfg( target_arch = "x86_64" ) ]
198198fn 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,
241241type Registers = [ uint , ..32 ] ;
242242
243243#[ cfg( target_arch = "arm" ) ]
244- fn new_regs ( ) -> ~Registers { ~ ( [ 0 , .. 32 ] ) }
244+ fn new_regs ( ) -> ~Registers { box { [ 0 , .. 32 ] } }
245245
246246#[ cfg( target_arch = "arm" ) ]
247247fn 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,
270270type Registers = [ uint , ..32 ] ;
271271
272272#[ cfg( target_arch = "mips" ) ]
273- fn new_regs ( ) -> ~Registers { ~ ( [ 0 , .. 32 ] ) }
273+ fn new_regs ( ) -> ~Registers { box [ 0 , .. 32 ] }
274274
275275#[ cfg( target_arch = "mips" ) ]
276276fn initialize_call_frame ( regs : & mut Registers , fptr : InitFn , arg : uint ,
0 commit comments