diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-10-11 17:03:02 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-10-11 17:03:02 -0700 |
| commit | f1de001d69ce9394cdba7ec00dec8465955c170a (patch) | |
| tree | 328fd391f3f338c72bbc8bd09cc63dc40692705a /src/test | |
| parent | c090dcad846f0af9cbebbed0deda5877140ed364 (diff) | |
| download | rust-f1de001d69ce9394cdba7ec00dec8465955c170a.tar.gz rust-f1de001d69ce9394cdba7ec00dec8465955c170a.zip | |
Annotate FIXMEs in reflect-visit-data
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/reflect-visit-data.rs | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/test/run-pass/reflect-visit-data.rs b/src/test/run-pass/reflect-visit-data.rs index e27aaa618ac..24ae16f25e1 100644 --- a/src/test/run-pass/reflect-visit-data.rs +++ b/src/test/run-pass/reflect-visit-data.rs @@ -3,13 +3,7 @@ use intrinsic::{TyDesc, get_tydesc, visit_tydesc, TyVisitor}; use libc::c_void; - -// FIXME: this is a near-duplicate of code in core::vec. -type unboxed_vec_repr = { - mut fill: uint, - mut alloc: uint, - data: u8 -}; +use vec::UnboxedVecRepr; #[doc = "High-level interfaces to `intrinsic::visit_ty` reflection system."] @@ -238,8 +232,8 @@ impl<V: TyVisitor movable_ptr> ptr_visit_adaptor<V>: TyVisitor { } fn visit_unboxed_vec(mtbl: uint, inner: *TyDesc) -> bool { - self.align_to::<unboxed_vec_repr>(); - // FIXME: Inner really has to move its own pointers on this one. + self.align_to::<UnboxedVecRepr>(); + // FIXME (#3732): Inner really has to move its own pointers on this one. // or else possibly we could have some weird interface wherein we // read-off a word from inner's pointers, but the read-word has to // always be the same in all sub-pointers? Dubious. @@ -570,7 +564,7 @@ impl my_visitor: TyVisitor { fn visit_enter_enum(_n_variants: uint, _sz: uint, _align: uint) -> bool { - // FIXME: this needs to rewind between enum variants, or something. + // FIXME (#3732): this needs to rewind between enum variants, or something. true } fn visit_enter_enum_variant(_variant: uint, |
