Skip to content

Commit 7ab66a4

Browse files
committed
core: remove old repr system, enable newer one. Close #3109.
1 parent 6c83fe4 commit 7ab66a4

File tree

2 files changed

+53
-550
lines changed

2 files changed

+53
-550
lines changed

src/libcore/reflect.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ pub trait MovePtr {
3232

3333
/// Helper function for alignment calculation.
3434
#[inline(always)]
35-
fn align(size: uint, align: uint) -> uint {
35+
pub fn align(size: uint, align: uint) -> uint {
3636
((size + align) - 1u) & !(align - 1u)
3737
}
3838

3939
/// Adaptor to wrap around visitors implementing MovePtr.
40-
struct MovePtrAdaptor<V: TyVisitor MovePtr> {
40+
pub struct MovePtrAdaptor<V: TyVisitor MovePtr> {
4141
inner: V
4242
}
4343
pub fn MovePtrAdaptor<V: TyVisitor MovePtr>(v: V) -> MovePtrAdaptor<V> {

0 commit comments

Comments
 (0)