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
18
18
19
19
use std:: intrinsics:: { Disr , Opaque , TyDesc , TyVisitor } ;
20
20
use std:: mem;
21
- use std:: gc:: Gc ;
22
21
23
22
/**
24
23
* Trait for visitor that wishes to reflect on data.
@@ -194,9 +193,9 @@ impl<V:TyVisitor + MovePtr> TyVisitor for MovePtrAdaptor<V> {
194
193
}
195
194
196
195
fn visit_box ( & mut self , mtbl : uint , inner : * const TyDesc ) -> bool {
197
- self . align_to :: < Gc < u8 > > ( ) ;
196
+ self . align_to :: < Box < u8 > > ( ) ;
198
197
if ! self . inner . visit_box ( mtbl, inner) { return false ; }
199
- self . bump_past :: < Gc < u8 > > ( ) ;
198
+ self . bump_past :: < Box < u8 > > ( ) ;
200
199
true
201
200
}
202
201
Original file line number Diff line number Diff line change @@ -274,13 +274,9 @@ impl<'a> TyVisitor for ReprVisitor<'a> {
274
274
self . get :: < & str > ( |this, s| this. write_escaped_slice ( * s) )
275
275
}
276
276
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
284
280
}
285
281
286
282
fn visit_uniq ( & mut self , _mtbl : uint , inner : * const TyDesc ) -> bool {
You can’t perform that action at this time.
0 commit comments