@@ -288,7 +288,7 @@ impl<'a> TyVisitor for ReprVisitor<'a> {
288
288
_align : uint ) -> bool { fail ! ( ) ; }
289
289
290
290
fn visit_box ( & mut self , mtbl : uint , inner : * TyDesc ) -> bool {
291
- try!( self , self . writer . write ( [ '@' as u8 ] ) ) ;
291
+ try!( self , self . writer . write ( "box(GC) " . as_bytes ( ) ) ) ;
292
292
self . write_mut_qualifier ( mtbl) ;
293
293
self . get :: < & raw:: Box < ( ) > > ( |this, b| {
294
294
let p = & b. data as * ( ) as * u8 ;
@@ -591,6 +591,7 @@ fn test_repr() {
591
591
use std:: io:: stdio:: println;
592
592
use std:: char:: is_alphabetic;
593
593
use std:: mem:: swap;
594
+ use std:: gc:: GC ;
594
595
595
596
fn exact_test < T > ( t : & T , e : & str ) {
596
597
let mut m = io:: MemWriter :: new ( ) ;
@@ -605,7 +606,7 @@ fn test_repr() {
605
606
exact_test ( & 1.234 , "1.234f64" ) ;
606
607
exact_test ( & ( "hello" ) , "\" hello\" " ) ;
607
608
608
- exact_test ( & ( @ 10 ) , "@ 10" ) ;
609
+ exact_test ( & ( box ( GC ) 10 ) , "box(GC) 10" ) ;
609
610
exact_test ( & ( box 10 ) , "box 10" ) ;
610
611
exact_test ( & ( & 10 ) , "&10" ) ;
611
612
let mut x = 10 ;
@@ -619,8 +620,8 @@ fn test_repr() {
619
620
"&[\" hi\" , \" there\" ]" ) ;
620
621
exact_test ( & ( P { a : 10 , b : 1.234 } ) ,
621
622
"repr::P{a: 10, b: 1.234f64}" ) ;
622
- exact_test ( & ( @ P { a : 10 , b : 1.234 } ) ,
623
- "@ repr::P{a: 10, b: 1.234f64}" ) ;
623
+ exact_test ( & ( box ( GC ) P { a : 10 , b : 1.234 } ) ,
624
+ "box(GC) repr::P{a: 10, b: 1.234f64}" ) ;
624
625
exact_test ( & ( box P { a : 10 , b : 1.234 } ) ,
625
626
"box repr::P{a: 10, b: 1.234f64}" ) ;
626
627
0 commit comments