Skip to content

Commit f1de001

Browse files
committed
Annotate FIXMEs in reflect-visit-data
1 parent c090dca commit f1de001

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

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)