Skip to content

Commit

Permalink
fix: use features for latest nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
darfink committed Oct 5, 2017
1 parent 7c7a75f commit 9581661
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#![recursion_limit = "1024"]
#![feature(range_contains, offset_to)]
#![cfg_attr(feature = "static", feature(const_fn, unboxed_closures))]
#![cfg_attr(test, feature(naked_functions, core_intrinsics, asm))]
#![cfg_attr(feature = "static", feature(
const_fn,
const_ptr_null_mut,
const_atomic_ptr_new,
unboxed_closures,
))]

//! A cross-platform detour library written in Rust.
//!
Expand Down
2 changes: 1 addition & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/// # Example
///
/// ```rust
/// #![feature(const_fn)]
/// #![feature(const_fn, const_atomic_ptr_new, const_ptr_null_mut)]
/// #[macro_use] extern crate detour;
///
/// use detour::Detour;
Expand Down
2 changes: 1 addition & 1 deletion tests/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg_attr(feature = "static", feature(const_fn))]
#![cfg_attr(feature = "static", feature(const_fn, const_atomic_ptr_new, const_ptr_null_mut))]
#[cfg_attr(feature = "static", macro_use)]
extern crate detour;
extern crate volatile_cell;
Expand Down

0 comments on commit 9581661

Please sign in to comment.