Skip to content

Commit

Permalink
core: remove old repr system, enable newer one. Close rust-lang#3109.
Browse files Browse the repository at this point in the history
  • Loading branch information
graydon committed Dec 18, 2012
1 parent f1e8773 commit 0143d17
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 550 deletions.
4 changes: 2 additions & 2 deletions src/libcore/reflect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ pub trait MovePtr {

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

/// Adaptor to wrap around visitors implementing MovePtr.
struct MovePtrAdaptor<V: TyVisitor MovePtr> {
pub struct MovePtrAdaptor<V: TyVisitor MovePtr> {
inner: V
}
pub fn MovePtrAdaptor<V: TyVisitor MovePtr>(v: V) -> MovePtrAdaptor<V> {
Expand Down
Loading

0 comments on commit 0143d17

Please sign in to comment.