Skip to content

Commit 81b20ce

Browse files
committed
---
yaml --- r: 33273 b: refs/heads/snap-stage3 c: f1de001 h: refs/heads/master i: 33271: f670d7e v: v3
1 parent 529fb64 commit 81b20ce

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: c090dcad846f0af9cbebbed0deda5877140ed364
4+
refs/heads/snap-stage3: f1de001d69ce9394cdba7ec00dec8465955c170a
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/test/run-pass/reflect-visit-data.rs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,7 @@
33

44
use intrinsic::{TyDesc, get_tydesc, visit_tydesc, TyVisitor};
55
use libc::c_void;
6-
7-
// FIXME: this is a near-duplicate of code in core::vec.
8-
type unboxed_vec_repr = {
9-
mut fill: uint,
10-
mut alloc: uint,
11-
data: u8
12-
};
6+
use vec::UnboxedVecRepr;
137

148
#[doc = "High-level interfaces to `intrinsic::visit_ty` reflection system."]
159

@@ -238,8 +232,8 @@ impl<V: TyVisitor movable_ptr> ptr_visit_adaptor<V>: TyVisitor {
238232
}
239233

240234
fn visit_unboxed_vec(mtbl: uint, inner: *TyDesc) -> bool {
241-
self.align_to::<unboxed_vec_repr>();
242-
// FIXME: Inner really has to move its own pointers on this one.
235+
self.align_to::<UnboxedVecRepr>();
236+
// FIXME (#3732): Inner really has to move its own pointers on this one.
243237
// or else possibly we could have some weird interface wherein we
244238
// read-off a word from inner's pointers, but the read-word has to
245239
// always be the same in all sub-pointers? Dubious.
@@ -570,7 +564,7 @@ impl my_visitor: TyVisitor {
570564

571565
fn visit_enter_enum(_n_variants: uint,
572566
_sz: uint, _align: uint) -> bool {
573-
// FIXME: this needs to rewind between enum variants, or something.
567+
// FIXME (#3732): this needs to rewind between enum variants, or something.
574568
true
575569
}
576570
fn visit_enter_enum_variant(_variant: uint,

0 commit comments

Comments
 (0)