From ed3976c5771c31ae4dd277bc10cc10d0d2817d44 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Fri, 30 Apr 2021 10:19:26 +0200 Subject: [PATCH] Use new `const_fn_trait_bound` feature to fix build on latest nightly --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 57c1003bc..c3f8616da 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,10 +2,10 @@ //! and access to various system registers. #![cfg_attr(not(test), no_std)] -#![cfg_attr(feature = "const_fn", feature(const_fn))] // Needed for generic access to associated consts #![cfg_attr(feature = "const_fn", feature(const_panic))] #![cfg_attr(feature = "const_fn", feature(const_mut_refs))] #![cfg_attr(feature = "const_fn", feature(const_fn_fn_ptr_basics))] +#![cfg_attr(feature = "const_fn", feature(const_fn_trait_bound))] #![cfg_attr(feature = "inline_asm", feature(asm))] #![cfg_attr(feature = "abi_x86_interrupt", feature(abi_x86_interrupt))] #![warn(missing_docs)]