|
3 | 3 |
|
4 | 4 | use intrinsic::{TyDesc, get_tydesc, visit_tydesc, TyVisitor}; |
5 | 5 | 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; |
13 | 7 |
|
14 | 8 | #[doc = "High-level interfaces to `intrinsic::visit_ty` reflection system."] |
15 | 9 |
|
@@ -238,8 +232,8 @@ impl<V: TyVisitor movable_ptr> ptr_visit_adaptor<V>: TyVisitor { |
238 | 232 | } |
239 | 233 |
|
240 | 234 | 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. |
243 | 237 | // or else possibly we could have some weird interface wherein we |
244 | 238 | // read-off a word from inner's pointers, but the read-word has to |
245 | 239 | // always be the same in all sub-pointers? Dubious. |
@@ -570,7 +564,7 @@ impl my_visitor: TyVisitor { |
570 | 564 |
|
571 | 565 | fn visit_enter_enum(_n_variants: uint, |
572 | 566 | _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. |
574 | 568 | true |
575 | 569 | } |
576 | 570 | fn visit_enter_enum_variant(_variant: uint, |
|
0 commit comments