File tree 3 files changed +11
-10
lines changed 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ impl<V: TyVisitor MovePtr> MovePtrAdaptor<V>: TyVisitor {
246
246
}
247
247
248
248
fn visit_unboxed_vec ( mtbl : uint , inner : * TyDesc ) -> bool {
249
- self . align_to :: < vec:: raw :: UnboxedVecRepr > ( ) ;
249
+ self . align_to :: < vec:: UnboxedVecRepr > ( ) ;
250
250
if ! self . inner . visit_vec ( mtbl, inner) { return false ; }
251
251
true
252
252
}
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ use to_str::ToStr;
15
15
use cast:: transmute;
16
16
use intrinsic:: { TyDesc , TyVisitor , visit_tydesc} ;
17
17
use reflect:: { MovePtr , MovePtrAdaptor } ;
18
- use vec:: raw:: { VecRepr , UnboxedVecRepr , SliceRepr } ;
18
+ use vec:: UnboxedVecRepr ;
19
+ use vec:: raw:: { VecRepr , SliceRepr } ;
19
20
pub use box:: raw:: BoxRepr ;
20
21
use box:: raw:: BoxHeaderRepr ;
21
22
@@ -303,7 +304,7 @@ impl ReprVisitor : TyVisitor {
303
304
304
305
305
306
fn visit_unboxed_vec ( mtbl : uint , inner : * TyDesc ) -> bool {
306
- do self . get :: < vec:: raw :: UnboxedVecRepr > |b| {
307
+ do self . get :: < vec:: UnboxedVecRepr > |b| {
307
308
self . write_unboxed_vec_repr ( mtbl, b, inner) ;
308
309
}
309
310
}
Original file line number Diff line number Diff line change @@ -1671,6 +1671,13 @@ pub unsafe fn from_buf<T>(ptr: *T, elts: uint) -> ~[T] {
1671
1671
raw:: from_buf_raw ( ptr, elts)
1672
1672
}
1673
1673
1674
+ /// The internal 'unboxed' representation of a vector
1675
+ pub struct UnboxedVecRepr {
1676
+ mut fill : uint ,
1677
+ mut alloc : uint ,
1678
+ data : u8
1679
+ }
1680
+
1674
1681
/// Unsafe operations
1675
1682
mod raw {
1676
1683
@@ -1680,13 +1687,6 @@ mod raw {
1680
1687
unboxed : UnboxedVecRepr
1681
1688
}
1682
1689
1683
- /// The internal 'unboxed' representation of a vector
1684
- pub struct UnboxedVecRepr {
1685
- mut fill : uint ,
1686
- mut alloc : uint ,
1687
- data : u8
1688
- }
1689
-
1690
1690
pub type SliceRepr = {
1691
1691
mut data : * u8,
1692
1692
mut len : uint
You can’t perform that action at this time.
0 commit comments