diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-09-24 16:17:03 -0700 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-09-27 10:46:41 -0700 |
| commit | 1ff143191c62bc7cfa17da99dac59a871f39a462 (patch) | |
| tree | fbe81a340ed6bf484052c517c12285eab67b567c /library/std/src | |
| parent | 1d216fef3ea9446a020cf86ae438ae9a0d40563f (diff) | |
| download | rust-1ff143191c62bc7cfa17da99dac59a871f39a462.tar.gz rust-1ff143191c62bc7cfa17da99dac59a871f39a462.zip | |
Add a feature gate for basic function pointer use in `const fn`
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index d03428dd082..e343eef9112 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -239,6 +239,7 @@ #![cfg_attr(not(bootstrap), feature(const_fn_floating_point_arithmetic))] #![feature(const_fn_transmute)] #![feature(const_fn)] +#![cfg_attr(not(bootstrap), feature(const_fn_fn_ptr_basics))] #![feature(const_ip)] #![feature(const_ipv6)] #![feature(const_raw_ptr_deref)] |
