From b0c6c4f9a45cf2b965acd3d10499e9df54929b36 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Mon, 29 Jul 2019 10:48:05 -0400 Subject: WIP: Add `const-fn` feature to attempt support for stable toolchain. To get this to work, either `FnMut` traits need to be allowed in `const fn` in stable, or `Handler::new` needs to be non-`const`. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 8e16b26..d0ddad5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,7 +15,7 @@ //! Critical section support is supplied by the [`cs` module](cs). #![no_std] -#![feature(const_fn)] +#![cfg_attr(feature = "const-fn", feature(const_fn))] pub mod array; pub mod cs; -- cgit v1.2.3