From 3bf56d0bace0965055992d039347110e10fa44e7 Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Tue, 22 Oct 2024 12:07:15 +0800 Subject: [PATCH] fix const in arr expression --- experiments/src/main.rs | 1 - libcortex_a9/src/lib.rs | 1 - libcortex_a9/src/sync_channel.rs | 1 - 3 files changed, 3 deletions(-) diff --git a/experiments/src/main.rs b/experiments/src/main.rs index d7cc915..c832e80 100644 --- a/experiments/src/main.rs +++ b/experiments/src/main.rs @@ -1,6 +1,5 @@ #![no_std] #![no_main] -#![feature(const_in_array_repeat_expressions)] #![feature(naked_functions)] extern crate alloc; diff --git a/libcortex_a9/src/lib.rs b/libcortex_a9/src/lib.rs index 4d023b1..b124a38 100644 --- a/libcortex_a9/src/lib.rs +++ b/libcortex_a9/src/lib.rs @@ -1,6 +1,5 @@ #![no_std] #![feature(never_type)] -#![feature(const_fn)] extern crate alloc; diff --git a/libcortex_a9/src/sync_channel.rs b/libcortex_a9/src/sync_channel.rs index e21df16..47598fa 100644 --- a/libcortex_a9/src/sync_channel.rs +++ b/libcortex_a9/src/sync_channel.rs @@ -172,7 +172,6 @@ impl<'a, T> Iterator for Receiver<'a, T> where T: Clone { #[macro_export] /// Macro for initializing the sync_channel with static buffer and indexes. -/// Note that this requires `#![feature(const_in_array_repeat_expressions)]` macro_rules! sync_channel { ($t: ty, $cap: expr) => { {