Skip to content

Commit

Permalink
Workaround Rust build issue for i686 windows-gnu
Browse files Browse the repository at this point in the history
  • Loading branch information
mati865 committed May 5, 2020
1 parent c0098c5 commit 072c62a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions psm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ pub enum StackDirection {

impl StackDirection {
/// Obtain the stack growth direction.
#[inline(always)]
#[cfg(asm)]
pub fn new() -> StackDirection {
const ASC: u8 = StackDirection::Ascending as u8;
Expand Down Expand Up @@ -315,7 +314,6 @@ impl StackDirection {
/// padding applied;
/// 2. Callee allocates more stack than was accounted for with padding, and accesses pages outside
/// the stack, invalidating the execution (by e.g. crashing).
#[inline(always)]
#[cfg(asm)]
pub fn stack_pointer() -> *mut u8 {
unsafe { rust_psm_stack_pointer() }
Expand Down

0 comments on commit 072c62a

Please sign in to comment.