Skip to content

Commit fb58109

Browse files
committed
debug: remove Gc support from Repr.
1 parent 8b1d3e6 commit fb58109

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

src/libdebug/reflect.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Runtime type reflection
1818

1919
use std::intrinsics::{Disr, Opaque, TyDesc, TyVisitor};
2020
use 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

src/libdebug/repr.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)