From 6ed1a8713895175520de7cb9f1f1239eef57263a Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Wed, 17 Mar 2021 02:48:16 +0100 Subject: [PATCH] Update features for latest nightly. --- embassy-nrf-examples/src/bin/buffered_uart.rs | 2 ++ embassy-nrf-examples/src/bin/executor_fairness_test.rs | 2 ++ embassy-nrf-examples/src/bin/gpiote_channel.rs | 2 ++ embassy-nrf-examples/src/bin/gpiote_port.rs | 2 ++ embassy-nrf-examples/src/bin/multiprio.rs | 2 ++ embassy-nrf-examples/src/bin/qspi.rs | 2 ++ embassy-nrf-examples/src/bin/rtc_async.rs | 2 ++ embassy-nrf-examples/src/bin/rtc_raw.rs | 2 ++ embassy-nrf-examples/src/bin/spim.rs | 2 ++ embassy-nrf-examples/src/bin/uart.rs | 2 ++ embassy-nrf/src/lib.rs | 2 ++ embassy-std-examples/src/bin/serial.rs | 2 ++ embassy-std-examples/src/bin/tick.rs | 2 ++ embassy-stm32f4-examples/src/bin/exti.rs | 2 ++ embassy-stm32f4-examples/src/bin/hello.rs | 2 ++ embassy-stm32f4-examples/src/bin/rtc_async.rs | 2 ++ embassy-stm32f4-examples/src/bin/serial.rs | 2 ++ embassy-stm32f4/src/lib.rs | 2 ++ embassy-traits/src/lib.rs | 4 +++- embassy/src/lib.rs | 2 ++ 20 files changed, 41 insertions(+), 1 deletion(-) diff --git a/embassy-nrf-examples/src/bin/buffered_uart.rs b/embassy-nrf-examples/src/bin/buffered_uart.rs index 42e81229..71e9b4a7 100644 --- a/embassy-nrf-examples/src/bin/buffered_uart.rs +++ b/embassy-nrf-examples/src/bin/buffered_uart.rs @@ -1,5 +1,7 @@ #![no_std] #![no_main] +#![feature(min_type_alias_impl_trait)] +#![feature(impl_trait_in_bindings)] #![feature(type_alias_impl_trait)] #[path = "../example_common.rs"] diff --git a/embassy-nrf-examples/src/bin/executor_fairness_test.rs b/embassy-nrf-examples/src/bin/executor_fairness_test.rs index 1b995573..6d0a311d 100644 --- a/embassy-nrf-examples/src/bin/executor_fairness_test.rs +++ b/embassy-nrf-examples/src/bin/executor_fairness_test.rs @@ -1,5 +1,7 @@ #![no_std] #![no_main] +#![feature(min_type_alias_impl_trait)] +#![feature(impl_trait_in_bindings)] #![feature(type_alias_impl_trait)] #[path = "../example_common.rs"] diff --git a/embassy-nrf-examples/src/bin/gpiote_channel.rs b/embassy-nrf-examples/src/bin/gpiote_channel.rs index 4c4dabc6..3764ba1c 100644 --- a/embassy-nrf-examples/src/bin/gpiote_channel.rs +++ b/embassy-nrf-examples/src/bin/gpiote_channel.rs @@ -1,5 +1,7 @@ #![no_std] #![no_main] +#![feature(min_type_alias_impl_trait)] +#![feature(impl_trait_in_bindings)] #![feature(type_alias_impl_trait)] #[path = "../example_common.rs"] diff --git a/embassy-nrf-examples/src/bin/gpiote_port.rs b/embassy-nrf-examples/src/bin/gpiote_port.rs index ccb5bb97..36ee1c8e 100644 --- a/embassy-nrf-examples/src/bin/gpiote_port.rs +++ b/embassy-nrf-examples/src/bin/gpiote_port.rs @@ -1,5 +1,7 @@ #![no_std] #![no_main] +#![feature(min_type_alias_impl_trait)] +#![feature(impl_trait_in_bindings)] #![feature(type_alias_impl_trait)] #[path = "../example_common.rs"] diff --git a/embassy-nrf-examples/src/bin/multiprio.rs b/embassy-nrf-examples/src/bin/multiprio.rs index d652633a..f5ebf67f 100644 --- a/embassy-nrf-examples/src/bin/multiprio.rs +++ b/embassy-nrf-examples/src/bin/multiprio.rs @@ -55,6 +55,8 @@ #![no_std] #![no_main] +#![feature(min_type_alias_impl_trait)] +#![feature(impl_trait_in_bindings)] #![feature(type_alias_impl_trait)] #[path = "../example_common.rs"] diff --git a/embassy-nrf-examples/src/bin/qspi.rs b/embassy-nrf-examples/src/bin/qspi.rs index 587ed7dd..7d8a45f7 100644 --- a/embassy-nrf-examples/src/bin/qspi.rs +++ b/embassy-nrf-examples/src/bin/qspi.rs @@ -1,5 +1,7 @@ #![no_std] #![no_main] +#![feature(min_type_alias_impl_trait)] +#![feature(impl_trait_in_bindings)] #![feature(type_alias_impl_trait)] #[path = "../example_common.rs"] diff --git a/embassy-nrf-examples/src/bin/rtc_async.rs b/embassy-nrf-examples/src/bin/rtc_async.rs index 5fb68633..ec437425 100644 --- a/embassy-nrf-examples/src/bin/rtc_async.rs +++ b/embassy-nrf-examples/src/bin/rtc_async.rs @@ -1,5 +1,7 @@ #![no_std] #![no_main] +#![feature(min_type_alias_impl_trait)] +#![feature(impl_trait_in_bindings)] #![feature(type_alias_impl_trait)] #[path = "../example_common.rs"] diff --git a/embassy-nrf-examples/src/bin/rtc_raw.rs b/embassy-nrf-examples/src/bin/rtc_raw.rs index 017487da..884ca92b 100644 --- a/embassy-nrf-examples/src/bin/rtc_raw.rs +++ b/embassy-nrf-examples/src/bin/rtc_raw.rs @@ -1,5 +1,7 @@ #![no_std] #![no_main] +#![feature(min_type_alias_impl_trait)] +#![feature(impl_trait_in_bindings)] #![feature(type_alias_impl_trait)] #[path = "../example_common.rs"] diff --git a/embassy-nrf-examples/src/bin/spim.rs b/embassy-nrf-examples/src/bin/spim.rs index 0a284dc8..d6b3a5f8 100644 --- a/embassy-nrf-examples/src/bin/spim.rs +++ b/embassy-nrf-examples/src/bin/spim.rs @@ -1,5 +1,7 @@ #![no_std] #![no_main] +#![feature(min_type_alias_impl_trait)] +#![feature(impl_trait_in_bindings)] #![feature(type_alias_impl_trait)] #[path = "../example_common.rs"] diff --git a/embassy-nrf-examples/src/bin/uart.rs b/embassy-nrf-examples/src/bin/uart.rs index 41f9e127..0acd6fde 100644 --- a/embassy-nrf-examples/src/bin/uart.rs +++ b/embassy-nrf-examples/src/bin/uart.rs @@ -1,5 +1,7 @@ #![no_std] #![no_main] +#![feature(min_type_alias_impl_trait)] +#![feature(impl_trait_in_bindings)] #![feature(type_alias_impl_trait)] #[path = "../example_common.rs"] diff --git a/embassy-nrf/src/lib.rs b/embassy-nrf/src/lib.rs index bb37ec36..2c72b912 100644 --- a/embassy-nrf/src/lib.rs +++ b/embassy-nrf/src/lib.rs @@ -1,6 +1,8 @@ #![no_std] #![feature(generic_associated_types)] #![feature(asm)] +#![feature(min_type_alias_impl_trait)] +#![feature(impl_trait_in_bindings)] #![feature(type_alias_impl_trait)] #![allow(incomplete_features)] diff --git a/embassy-std-examples/src/bin/serial.rs b/embassy-std-examples/src/bin/serial.rs index cad64fb2..6d628fe1 100644 --- a/embassy-std-examples/src/bin/serial.rs +++ b/embassy-std-examples/src/bin/serial.rs @@ -1,3 +1,5 @@ +#![feature(min_type_alias_impl_trait)] +#![feature(impl_trait_in_bindings)] #![feature(type_alias_impl_trait)] #[path = "../serial_port.rs"] diff --git a/embassy-std-examples/src/bin/tick.rs b/embassy-std-examples/src/bin/tick.rs index af2305f3..96eef067 100644 --- a/embassy-std-examples/src/bin/tick.rs +++ b/embassy-std-examples/src/bin/tick.rs @@ -1,3 +1,5 @@ +#![feature(min_type_alias_impl_trait)] +#![feature(impl_trait_in_bindings)] #![feature(type_alias_impl_trait)] use embassy::executor::task; diff --git a/embassy-stm32f4-examples/src/bin/exti.rs b/embassy-stm32f4-examples/src/bin/exti.rs index 6b3568d6..0c6561cd 100644 --- a/embassy-stm32f4-examples/src/bin/exti.rs +++ b/embassy-stm32f4-examples/src/bin/exti.rs @@ -1,6 +1,8 @@ #![no_std] #![no_main] #![feature(trait_alias)] +#![feature(min_type_alias_impl_trait)] +#![feature(impl_trait_in_bindings)] #![feature(type_alias_impl_trait)] #[path = "../example_common.rs"] diff --git a/embassy-stm32f4-examples/src/bin/hello.rs b/embassy-stm32f4-examples/src/bin/hello.rs index 77c54464..8a665414 100644 --- a/embassy-stm32f4-examples/src/bin/hello.rs +++ b/embassy-stm32f4-examples/src/bin/hello.rs @@ -1,6 +1,8 @@ #![no_std] #![no_main] #![feature(trait_alias)] +#![feature(min_type_alias_impl_trait)] +#![feature(impl_trait_in_bindings)] #![feature(type_alias_impl_trait)] #[path = "../example_common.rs"] diff --git a/embassy-stm32f4-examples/src/bin/rtc_async.rs b/embassy-stm32f4-examples/src/bin/rtc_async.rs index e5321226..41ce2d4f 100644 --- a/embassy-stm32f4-examples/src/bin/rtc_async.rs +++ b/embassy-stm32f4-examples/src/bin/rtc_async.rs @@ -1,5 +1,7 @@ #![no_std] #![no_main] +#![feature(min_type_alias_impl_trait)] +#![feature(impl_trait_in_bindings)] #![feature(type_alias_impl_trait)] #[path = "../example_common.rs"] diff --git a/embassy-stm32f4-examples/src/bin/serial.rs b/embassy-stm32f4-examples/src/bin/serial.rs index 6351f728..b138bfdd 100644 --- a/embassy-stm32f4-examples/src/bin/serial.rs +++ b/embassy-stm32f4-examples/src/bin/serial.rs @@ -1,6 +1,8 @@ #![no_std] #![no_main] #![feature(trait_alias)] +#![feature(min_type_alias_impl_trait)] +#![feature(impl_trait_in_bindings)] #![feature(type_alias_impl_trait)] #[path = "../example_common.rs"] diff --git a/embassy-stm32f4/src/lib.rs b/embassy-stm32f4/src/lib.rs index aa99068c..e5e82cd5 100644 --- a/embassy-stm32f4/src/lib.rs +++ b/embassy-stm32f4/src/lib.rs @@ -1,6 +1,8 @@ #![no_std] #![feature(generic_associated_types)] #![feature(asm)] +#![feature(min_type_alias_impl_trait)] +#![feature(impl_trait_in_bindings)] #![feature(type_alias_impl_trait)] #![allow(incomplete_features)] diff --git a/embassy-traits/src/lib.rs b/embassy-traits/src/lib.rs index d8b06a09..bf5c63de 100644 --- a/embassy-traits/src/lib.rs +++ b/embassy-traits/src/lib.rs @@ -4,11 +4,13 @@ #![feature(const_fn_fn_ptr_basics)] #![feature(const_option)] #![allow(incomplete_features)] +#![feature(min_type_alias_impl_trait)] +#![feature(impl_trait_in_bindings)] #![feature(type_alias_impl_trait)] pub mod delay; pub mod flash; pub mod gpio; -pub mod qei; pub mod i2c; +pub mod qei; pub mod uart; diff --git a/embassy/src/lib.rs b/embassy/src/lib.rs index b7ed4e70..55c8d857 100644 --- a/embassy/src/lib.rs +++ b/embassy/src/lib.rs @@ -4,6 +4,8 @@ #![feature(const_fn_fn_ptr_basics)] #![feature(const_option)] #![allow(incomplete_features)] +#![feature(min_type_alias_impl_trait)] +#![feature(impl_trait_in_bindings)] #![feature(type_alias_impl_trait)] // This mod MUST go first, so that the others see its macros.