Skip to content

Commit 80b4c71

Browse files
committed
---
yaml --- r: 136185 b: refs/heads/try c: fb58109 h: refs/heads/master i: 136183: 2276d3c v: v3
1 parent 31a6374 commit 80b4c71

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: b5ba2f5517b1f90d07969ca3facdf5132e42436c
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 749ff5e76a0d08837964e44c66654679a3a88bb8
5-
refs/heads/try: 8b1d3e6c1c0a7d24d1c77b567e5fad6e1be6baca
5+
refs/heads/try: fb58109070f96766cbc0d74fef6e66892a787321
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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

branches/try/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)