diff options
author | Aaron Hill <aa1ronham@gmail.com> | 2019-09-30 16:02:01 -0400 |
---|---|---|
committer | Aaron Hill <aa1ronham@gmail.com> | 2019-10-27 20:59:38 -0400 |
commit | 5dfc2c82854eede618f35c4511e941506f0e76d0 (patch) | |
tree | cfce2e74639a01d259e450108a32f4849b28762f /src/lib.rs | |
parent | 53bdffc028632907958bbd03ff88182b2b20a6cc (diff) | |
download | rust-libc-5dfc2c82854eede618f35c4511e941506f0e76d0.tar.gz |
Add support for declaring 'const fn'
Add a new feature to enable this, since `const extern fn`
support is unstable
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs index 3255303e5a..40625ac98d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -34,6 +34,7 @@ #![no_std] #![cfg_attr(feature = "rustc-dep-of-std", no_core)] #![cfg_attr(target_os = "redox", feature(static_nobundle))] +#![cfg_attr(feature = "const-extern-fn", feature(const_extern_fn))] #[macro_use] mod macros; |