From 584bb2e9db4b823f6134b80fcba2850b38169071 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Fri, 30 Apr 2021 21:00:22 +0900 Subject: [PATCH] Use feature(const_fn_trait_bound) instead of feature(const_fn) error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable --> crossbeam-epoch/src/atomic.rs:313:6 | 313 | impl Atomic { | ^ | = note: see issue #57563 for more information = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable --- crossbeam-epoch/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crossbeam-epoch/src/lib.rs b/crossbeam-epoch/src/lib.rs index 99da911ba..81b6b37c9 100644 --- a/crossbeam-epoch/src/lib.rs +++ b/crossbeam-epoch/src/lib.rs @@ -63,7 +63,7 @@ )] #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(feature = "nightly", feature(cfg_target_has_atomic))] -#![cfg_attr(feature = "nightly", feature(const_fn))] +#![cfg_attr(feature = "nightly", feature(const_fn_trait_bound))] #[cfg(crossbeam_loom)] extern crate loom_crate as loom;