From e519e002657e992c47bebc356b044902334d32bc Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Wed, 1 Nov 2023 04:56:56 +0100 Subject: [PATCH] Update Rust nightly. --- cyw43-pio/src/lib.rs | 2 +- cyw43/src/control.rs | 1 - cyw43/src/lib.rs | 2 +- embassy-boot/boot/src/lib.rs | 1 + embassy-executor/src/lib.rs | 1 + embassy-net-adin1110/src/lib.rs | 1 + embassy-net-wiznet/src/lib.rs | 1 + embassy-stm32-wpan/src/lib.rs | 4 ++++ embassy-stm32-wpan/src/mac/driver.rs | 1 - embassy-time/src/lib.rs | 1 + embassy-usb-driver/src/lib.rs | 1 + examples/rp/src/bin/pio_uart.rs | 1 + examples/rp/src/bin/wifi_ap_tcp_server.rs | 2 +- examples/rp/src/bin/wifi_scan.rs | 2 +- examples/rp/src/bin/wifi_tcp_server.rs | 2 +- examples/stm32wl/src/bin/lora_lorawan.rs | 1 + examples/stm32wl/src/bin/lora_p2p_receive.rs | 1 + examples/stm32wl/src/bin/lora_p2p_send.rs | 1 + rust-toolchain.toml | 2 +- 19 files changed, 20 insertions(+), 8 deletions(-) diff --git a/cyw43-pio/src/lib.rs b/cyw43-pio/src/lib.rs index 830a5b44a..de89ed582 100644 --- a/cyw43-pio/src/lib.rs +++ b/cyw43-pio/src/lib.rs @@ -1,6 +1,6 @@ #![no_std] -#![allow(incomplete_features)] #![feature(async_fn_in_trait)] +#![allow(stable_features, unknown_lints, async_fn_in_trait)] use core::slice; diff --git a/cyw43/src/control.rs b/cyw43/src/control.rs index d2709304c..ffcf2d9b1 100644 --- a/cyw43/src/control.rs +++ b/cyw43/src/control.rs @@ -4,7 +4,6 @@ use embassy_net_driver_channel as ch; use embassy_net_driver_channel::driver::{HardwareAddress, LinkState}; use embassy_time::Timer; -pub use crate::bus::SpiBusCyw43; use crate::consts::*; use crate::events::{Event, EventSubscriber, Events}; use crate::fmt::Bytes; diff --git a/cyw43/src/lib.rs b/cyw43/src/lib.rs index 6b124cf7f..e60f87d0a 100644 --- a/cyw43/src/lib.rs +++ b/cyw43/src/lib.rs @@ -1,7 +1,7 @@ #![no_std] #![no_main] -#![allow(incomplete_features)] #![feature(async_fn_in_trait, type_alias_impl_trait, concat_bytes)] +#![allow(stable_features, unknown_lints, async_fn_in_trait)] #![deny(unused_must_use)] // This mod MUST go first, so that the others see its macros. diff --git a/embassy-boot/boot/src/lib.rs b/embassy-boot/boot/src/lib.rs index 47f7c1797..9f0356375 100644 --- a/embassy-boot/boot/src/lib.rs +++ b/embassy-boot/boot/src/lib.rs @@ -1,4 +1,5 @@ #![cfg_attr(feature = "nightly", feature(async_fn_in_trait))] +#![cfg_attr(feature = "nightly", allow(stable_features, unknown_lints, async_fn_in_trait))] #![no_std] #![warn(missing_docs)] #![doc = include_str!("../README.md")] diff --git a/embassy-executor/src/lib.rs b/embassy-executor/src/lib.rs index 3ce687eb6..020f9095c 100644 --- a/embassy-executor/src/lib.rs +++ b/embassy-executor/src/lib.rs @@ -33,6 +33,7 @@ check_at_most_one!("arch-cortex-m", "arch-riscv32", "arch-xtensa", "arch-std", " mod arch; #[cfg(feature = "_arch")] +#[allow(unused_imports)] // don't warn if the module is empty. pub use arch::*; pub mod raw; diff --git a/embassy-net-adin1110/src/lib.rs b/embassy-net-adin1110/src/lib.rs index edee3438b..331c596df 100644 --- a/embassy-net-adin1110/src/lib.rs +++ b/embassy-net-adin1110/src/lib.rs @@ -1,5 +1,6 @@ #![deny(clippy::pedantic)] #![feature(async_fn_in_trait)] +#![allow(stable_features, unknown_lints, async_fn_in_trait)] #![cfg_attr(not(any(test, feature = "std")), no_std)] #![allow(clippy::module_name_repetitions)] #![allow(clippy::missing_errors_doc)] diff --git a/embassy-net-wiznet/src/lib.rs b/embassy-net-wiznet/src/lib.rs index afdb6729c..21d5f46d4 100644 --- a/embassy-net-wiznet/src/lib.rs +++ b/embassy-net-wiznet/src/lib.rs @@ -1,5 +1,6 @@ #![no_std] #![feature(async_fn_in_trait)] +#![allow(stable_features, unknown_lints, async_fn_in_trait)] #![doc = include_str!("../README.md")] pub mod chip; diff --git a/embassy-stm32-wpan/src/lib.rs b/embassy-stm32-wpan/src/lib.rs index 2a8ab7253..69a3d082a 100644 --- a/embassy-stm32-wpan/src/lib.rs +++ b/embassy-stm32-wpan/src/lib.rs @@ -1,5 +1,9 @@ #![no_std] #![cfg_attr(any(feature = "ble", feature = "mac"), feature(async_fn_in_trait))] +#![cfg_attr( + any(feature = "ble", feature = "mac"), + allow(stable_features, unknown_lints, async_fn_in_trait) +)] #![cfg_attr(feature = "mac", feature(type_alias_impl_trait, concat_bytes))] // This must go FIRST so that all the other modules see its macros. diff --git a/embassy-stm32-wpan/src/mac/driver.rs b/embassy-stm32-wpan/src/mac/driver.rs index ffba6e5e8..5b9d5daf4 100644 --- a/embassy-stm32-wpan/src/mac/driver.rs +++ b/embassy-stm32-wpan/src/mac/driver.rs @@ -1,4 +1,3 @@ -#![allow(incomplete_features)] #![deny(unused_must_use)] use core::task::Context; diff --git a/embassy-time/src/lib.rs b/embassy-time/src/lib.rs index 45c1e882b..a90368d59 100644 --- a/embassy-time/src/lib.rs +++ b/embassy-time/src/lib.rs @@ -1,5 +1,6 @@ #![cfg_attr(not(any(feature = "std", feature = "wasm", test)), no_std)] #![cfg_attr(feature = "nightly", feature(async_fn_in_trait))] +#![cfg_attr(feature = "nightly", allow(stable_features, unknown_lints, async_fn_in_trait))] #![doc = include_str!("../README.md")] #![allow(clippy::new_without_default)] #![warn(missing_docs)] diff --git a/embassy-usb-driver/src/lib.rs b/embassy-usb-driver/src/lib.rs index 86e37595b..9c2dddda5 100644 --- a/embassy-usb-driver/src/lib.rs +++ b/embassy-usb-driver/src/lib.rs @@ -1,5 +1,6 @@ #![no_std] #![feature(async_fn_in_trait)] +#![allow(stable_features, unknown_lints, async_fn_in_trait)] #![doc = include_str!("../README.md")] #![warn(missing_docs)] diff --git a/examples/rp/src/bin/pio_uart.rs b/examples/rp/src/bin/pio_uart.rs index aa9e52cbd..45416c56b 100644 --- a/examples/rp/src/bin/pio_uart.rs +++ b/examples/rp/src/bin/pio_uart.rs @@ -10,6 +10,7 @@ #![no_main] #![feature(type_alias_impl_trait)] #![feature(async_fn_in_trait)] +#![allow(stable_features, unknown_lints, async_fn_in_trait)] use defmt::{info, panic, trace}; use embassy_executor::Spawner; diff --git a/examples/rp/src/bin/wifi_ap_tcp_server.rs b/examples/rp/src/bin/wifi_ap_tcp_server.rs index 98cae53f6..b5344c185 100644 --- a/examples/rp/src/bin/wifi_ap_tcp_server.rs +++ b/examples/rp/src/bin/wifi_ap_tcp_server.rs @@ -5,7 +5,7 @@ #![no_main] #![feature(type_alias_impl_trait)] #![feature(async_fn_in_trait)] -#![allow(incomplete_features)] +#![allow(stable_features, unknown_lints, async_fn_in_trait)] use core::str::from_utf8; diff --git a/examples/rp/src/bin/wifi_scan.rs b/examples/rp/src/bin/wifi_scan.rs index dbbbf6c81..f2acaf3e8 100644 --- a/examples/rp/src/bin/wifi_scan.rs +++ b/examples/rp/src/bin/wifi_scan.rs @@ -5,7 +5,7 @@ #![no_main] #![feature(type_alias_impl_trait)] #![feature(async_fn_in_trait)] -#![allow(incomplete_features)] +#![allow(stable_features, unknown_lints, async_fn_in_trait)] use core::str; diff --git a/examples/rp/src/bin/wifi_tcp_server.rs b/examples/rp/src/bin/wifi_tcp_server.rs index c00fff216..4e74ad117 100644 --- a/examples/rp/src/bin/wifi_tcp_server.rs +++ b/examples/rp/src/bin/wifi_tcp_server.rs @@ -5,7 +5,7 @@ #![no_main] #![feature(type_alias_impl_trait)] #![feature(async_fn_in_trait)] -#![allow(incomplete_features)] +#![allow(stable_features, unknown_lints, async_fn_in_trait)] use core::str::from_utf8; diff --git a/examples/stm32wl/src/bin/lora_lorawan.rs b/examples/stm32wl/src/bin/lora_lorawan.rs index 35a6a8425..226e6786f 100644 --- a/examples/stm32wl/src/bin/lora_lorawan.rs +++ b/examples/stm32wl/src/bin/lora_lorawan.rs @@ -4,6 +4,7 @@ #![no_main] #![macro_use] #![feature(type_alias_impl_trait, async_fn_in_trait)] +#![allow(stable_features, unknown_lints, async_fn_in_trait)] use defmt::info; use embassy_executor::Spawner; diff --git a/examples/stm32wl/src/bin/lora_p2p_receive.rs b/examples/stm32wl/src/bin/lora_p2p_receive.rs index 1c485d739..a3bb0c0f9 100644 --- a/examples/stm32wl/src/bin/lora_p2p_receive.rs +++ b/examples/stm32wl/src/bin/lora_p2p_receive.rs @@ -4,6 +4,7 @@ #![no_main] #![macro_use] #![feature(type_alias_impl_trait, async_fn_in_trait)] +#![allow(stable_features, unknown_lints, async_fn_in_trait)] use defmt::info; use embassy_executor::Spawner; diff --git a/examples/stm32wl/src/bin/lora_p2p_send.rs b/examples/stm32wl/src/bin/lora_p2p_send.rs index 3afa78acb..08dd0845e 100644 --- a/examples/stm32wl/src/bin/lora_p2p_send.rs +++ b/examples/stm32wl/src/bin/lora_p2p_send.rs @@ -4,6 +4,7 @@ #![no_main] #![macro_use] #![feature(type_alias_impl_trait, async_fn_in_trait)] +#![allow(stable_features, unknown_lints, async_fn_in_trait)] use defmt::info; use embassy_executor::Spawner; diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 755a92075..419c31085 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,7 +1,7 @@ # Before upgrading check that everything is available on all tier1 targets here: # https://rust-lang.github.io/rustup-components-history [toolchain] -channel = "nightly-2023-10-02" +channel = "nightly-2023-11-01" components = [ "rust-src", "rustfmt", "llvm-tools" ] targets = [ "thumbv7em-none-eabi",