diff options
Diffstat (limited to 'src/libcore/reflect.rs')
| -rw-r--r-- | src/libcore/reflect.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libcore/reflect.rs b/src/libcore/reflect.rs index 3fa37a2fb8e..d9b18947779 100644 --- a/src/libcore/reflect.rs +++ b/src/libcore/reflect.rs @@ -34,9 +34,7 @@ pub fn MovePtrAdaptor<V: TyVisitor MovePtr>(v: V) -> MovePtrAdaptor<V> { MovePtrAdaptor { inner: move v } } -/// Abstract type-directed pointer-movement using the MovePtr trait -impl<V: TyVisitor MovePtr> MovePtrAdaptor<V>: TyVisitor { - +impl<V: TyVisitor MovePtr> MovePtrAdaptor<V> { #[inline(always)] fn bump(sz: uint) { do self.inner.move_ptr() |p| { @@ -60,7 +58,10 @@ impl<V: TyVisitor MovePtr> MovePtrAdaptor<V>: TyVisitor { fn bump_past<T>() { self.bump(sys::size_of::<T>()); } +} +/// Abstract type-directed pointer-movement using the MovePtr trait +impl<V: TyVisitor MovePtr> MovePtrAdaptor<V>: TyVisitor { fn visit_bot() -> bool { self.align_to::<()>(); if ! self.inner.visit_bot() { return false; } |
