From fa07e1ca70ada4e0049d57429a84f3af536a4625 Mon Sep 17 00:00:00 2001 From: Han Mertens Date: Sat, 8 May 2021 12:41:37 +0200 Subject: [PATCH] cpuio: Use new feature flag for const functions This is necessary since rust-lang/rust#84310, otherwise new nightlies can't build cpuio. Fixes #8. --- crates/cpuio/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cpuio/src/lib.rs b/crates/cpuio/src/lib.rs index 75bb62e..070b57a 100644 --- a/crates/cpuio/src/lib.rs +++ b/crates/cpuio/src/lib.rs @@ -1,7 +1,7 @@ //! CPU-level input/output instructions, including `inb`, `outb`, etc., and //! a high level Rust wrapper. -#![feature(llvm_asm, const_fn)] +#![feature(llvm_asm, const_fn_trait_bound)] #![no_std] use core::marker::PhantomData;