aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2019-07-29 10:48:05 -0400
committerBrian Cully <bjc@kublai.com>2019-07-29 10:48:05 -0400
commitb0c6c4f9a45cf2b965acd3d10499e9df54929b36 (patch)
treec006650bfb2ff4e233241eb3d5d326cb222daa80 /src/lib.rs
parent9a34921b3310a32644ba1ba2e72b028f27d4a2b2 (diff)
downloadclint-b0c6c4f9a45cf2b965acd3d10499e9df54929b36.tar.gz
clint-b0c6c4f9a45cf2b965acd3d10499e9df54929b36.zip
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`.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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;