From 0dd6c8bc323ff2d5760cc0dde1459874fc9b0cbb Mon Sep 17 00:00:00 2001 From: edef Date: Thu, 16 Apr 2015 07:12:03 -0400 Subject: [PATCH] pass STACK_ALIGN through without exposing it --- src/arch/common.rs | 2 +- src/arch/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arch/common.rs b/src/arch/common.rs index 8710a3e..907e01a 100644 --- a/src/arch/common.rs +++ b/src/arch/common.rs @@ -5,7 +5,7 @@ use core::mem::{size_of, align_of}; use core::cmp::max; use core::ptr; -use super::STACK_ALIGN; +use super::imp::STACK_ALIGN; pub unsafe extern "C" fn rust_trampoline(f: *const F) { ptr::read(f)() diff --git a/src/arch/mod.rs b/src/arch/mod.rs index 206d44a..9d3242b 100644 --- a/src/arch/mod.rs +++ b/src/arch/mod.rs @@ -1,7 +1,7 @@ // Copyright (c) 2015, edef // See the LICENSE file included in this distribution. use core::prelude::*; -pub use self::imp::{Registers, STACK_ALIGN}; +pub use self::imp::Registers; unsafe impl Send for Registers {}