File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ Runtime type reflection
1818
1919use std:: intrinsics:: { Disr , Opaque , TyDesc , TyVisitor } ;
2020use std:: mem;
21- use std:: gc:: Gc ;
2221
2322/**
2423 * Trait for visitor that wishes to reflect on data.
@@ -194,9 +193,9 @@ impl<V:TyVisitor + MovePtr> TyVisitor for MovePtrAdaptor<V> {
194193 }
195194
196195 fn visit_box ( & mut self , mtbl : uint , inner : * const TyDesc ) -> bool {
197- self . align_to :: < Gc < u8 > > ( ) ;
196+ self . align_to :: < Box < u8 > > ( ) ;
198197 if ! self . inner . visit_box ( mtbl, inner) { return false ; }
199- self . bump_past :: < Gc < u8 > > ( ) ;
198+ self . bump_past :: < Box < u8 > > ( ) ;
200199 true
201200 }
202201
Original file line number Diff line number Diff line change @@ -274,13 +274,9 @@ impl<'a> TyVisitor for ReprVisitor<'a> {
274274 self . get :: < & str > ( |this, s| this. write_escaped_slice ( * s) )
275275 }
276276
277- fn visit_box ( & mut self , mtbl : uint , inner : * const TyDesc ) -> bool {
278- try!( self , self . writer . write ( "box(GC) " . as_bytes ( ) ) ) ;
279- self . write_mut_qualifier ( mtbl) ;
280- self . get :: < & raw:: GcBox < ( ) > > ( |this, b| {
281- let p = & b. data as * const ( ) as * const u8 ;
282- this. visit_ptr_inner ( p, inner)
283- } )
277+ fn visit_box ( & mut self , _mtbl : uint , _inner : * const TyDesc ) -> bool {
278+ try!( self , self . writer . write ( "box(GC) ???" . as_bytes ( ) ) ) ;
279+ true
284280 }
285281
286282 fn visit_uniq ( & mut self , _mtbl : uint , inner : * const TyDesc ) -> bool {
You can’t perform that action at this time.
0 commit comments