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 830a5b44..de89ed58 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 d2709304..ffcf2d9b 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 6b124cf7..e60f87d0 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 47f7c179..9f035637 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 3ce687eb..020f9095 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 edee3438..331c596d 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 afdb6729..21d5f46d 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 2a8ab725..69a3d082 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 ffba6e5e..5b9d5daf 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 45c1e882..a90368d5 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 86e37595..9c2dddda 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 aa9e52cb..45416c56 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 98cae53f..b5344c18 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 dbbbf6c8..f2acaf3e 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 c00fff21..4e74ad11 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 35a6a842..226e6786 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 1c485d73..a3bb0c0f 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 3afa78ac..08dd0845 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 755a9207..419c3108 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",