diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-05-19 19:01:31 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-19 19:01:31 +0200 |
| commit | d737e3dcbb67af114490834c617de9100b65d5fb (patch) | |
| tree | 8af24ae1262c5f60e2388e3deab9894cbea23707 | |
| parent | 9dff6b9d81a56966a815057c79898c178841b1cd (diff) | |
| parent | a1cbdd8d295f9fd816a65fa7ca6df67ac5a25ddf (diff) | |
Merge pull request #1469 from embassy-rs/update-nightly
Update Rust nightly.
| -rw-r--r-- | embassy-boot/boot/src/lib.rs | 1 | ||||
| -rw-r--r-- | embassy-embedded-hal/src/lib.rs | 1 | ||||
| -rw-r--r-- | embassy-lora/src/lib.rs | 1 | ||||
| -rw-r--r-- | embassy-net/src/lib.rs | 1 | ||||
| -rw-r--r-- | embassy-nrf/src/lib.rs | 1 | ||||
| -rw-r--r-- | embassy-nrf/src/uarte.rs | 10 | ||||
| -rw-r--r-- | embassy-rp/src/lib.rs | 1 | ||||
| -rw-r--r-- | embassy-stm32/src/lib.rs | 1 | ||||
| -rw-r--r-- | embassy-stm32/src/sdmmc/mod.rs | 12 | ||||
| -rw-r--r-- | embassy-sync/src/lib.rs | 1 | ||||
| -rw-r--r-- | embassy-time/src/lib.rs | 1 | ||||
| -rw-r--r-- | embassy-time/src/queue_generic.rs | 2 | ||||
| -rw-r--r-- | embassy-usb-driver/src/lib.rs | 1 | ||||
| -rw-r--r-- | examples/stm32wl/src/bin/lora_lorawan.rs | 1 | ||||
| -rw-r--r-- | examples/stm32wl/src/bin/lora_p2p_receive.rs | 1 | ||||
| -rw-r--r-- | examples/stm32wl/src/bin/lora_p2p_send.rs | 1 | ||||
| -rw-r--r-- | examples/wasm/src/lib.rs | 1 | ||||
| -rw-r--r-- | rust-toolchain.toml | 2 |
18 files changed, 15 insertions, 25 deletions
diff --git a/embassy-boot/boot/src/lib.rs b/embassy-boot/boot/src/lib.rs index 8eb3ba96d..4521fecb0 100644 --- a/embassy-boot/boot/src/lib.rs +++ b/embassy-boot/boot/src/lib.rs | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | #![cfg_attr(feature = "nightly", feature(async_fn_in_trait))] | 1 | #![cfg_attr(feature = "nightly", feature(async_fn_in_trait))] |
| 2 | #![allow(incomplete_features)] | ||
| 3 | #![no_std] | 2 | #![no_std] |
| 4 | #![warn(missing_docs)] | 3 | #![warn(missing_docs)] |
| 5 | #![doc = include_str!("../README.md")] | 4 | #![doc = include_str!("../README.md")] |
diff --git a/embassy-embedded-hal/src/lib.rs b/embassy-embedded-hal/src/lib.rs index a783151e4..73c81b465 100644 --- a/embassy-embedded-hal/src/lib.rs +++ b/embassy-embedded-hal/src/lib.rs | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | #![cfg_attr(not(feature = "std"), no_std)] | 1 | #![cfg_attr(not(feature = "std"), no_std)] |
| 2 | #![cfg_attr(feature = "nightly", feature(async_fn_in_trait, impl_trait_projections, try_blocks))] | 2 | #![cfg_attr(feature = "nightly", feature(async_fn_in_trait, impl_trait_projections, try_blocks))] |
| 3 | #![cfg_attr(feature = "nightly", allow(incomplete_features))] | ||
| 4 | #![warn(missing_docs)] | 3 | #![warn(missing_docs)] |
| 5 | 4 | ||
| 6 | //! Utilities to use `embedded-hal` traits with Embassy. | 5 | //! Utilities to use `embedded-hal` traits with Embassy. |
diff --git a/embassy-lora/src/lib.rs b/embassy-lora/src/lib.rs index 3facee6f3..c23d1d0dd 100644 --- a/embassy-lora/src/lib.rs +++ b/embassy-lora/src/lib.rs | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | #![no_std] | 1 | #![no_std] |
| 2 | #![feature(async_fn_in_trait, impl_trait_projections)] | 2 | #![feature(async_fn_in_trait, impl_trait_projections)] |
| 3 | #![allow(incomplete_features)] | ||
| 4 | //! embassy-lora holds LoRa-specific functionality. | 3 | //! embassy-lora holds LoRa-specific functionality. |
| 5 | 4 | ||
| 6 | pub(crate) mod fmt; | 5 | pub(crate) mod fmt; |
diff --git a/embassy-net/src/lib.rs b/embassy-net/src/lib.rs index 9487c0913..bccbad521 100644 --- a/embassy-net/src/lib.rs +++ b/embassy-net/src/lib.rs | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | #![cfg_attr(not(feature = "std"), no_std)] | 1 | #![cfg_attr(not(feature = "std"), no_std)] |
| 2 | #![cfg_attr(feature = "nightly", feature(async_fn_in_trait, impl_trait_projections))] | 2 | #![cfg_attr(feature = "nightly", feature(async_fn_in_trait, impl_trait_projections))] |
| 3 | #![cfg_attr(feature = "nightly", allow(incomplete_features))] | ||
| 4 | #![warn(missing_docs)] | 3 | #![warn(missing_docs)] |
| 5 | #![doc = include_str!("../README.md")] | 4 | #![doc = include_str!("../README.md")] |
| 6 | 5 | ||
diff --git a/embassy-nrf/src/lib.rs b/embassy-nrf/src/lib.rs index 7c60b32b2..d4d7a1cad 100644 --- a/embassy-nrf/src/lib.rs +++ b/embassy-nrf/src/lib.rs | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | #![no_std] | 1 | #![no_std] |
| 2 | #![cfg_attr(feature = "nightly", feature(async_fn_in_trait, impl_trait_projections))] | 2 | #![cfg_attr(feature = "nightly", feature(async_fn_in_trait, impl_trait_projections))] |
| 3 | #![cfg_attr(feature = "nightly", allow(incomplete_features))] | ||
| 4 | #![doc = include_str!("../README.md")] | 3 | #![doc = include_str!("../README.md")] |
| 5 | #![warn(missing_docs)] | 4 | #![warn(missing_docs)] |
| 6 | 5 | ||
diff --git a/embassy-nrf/src/uarte.rs b/embassy-nrf/src/uarte.rs index 586c88b2d..032089635 100644 --- a/embassy-nrf/src/uarte.rs +++ b/embassy-nrf/src/uarte.rs | |||
| @@ -791,20 +791,18 @@ impl<'d, T: Instance, U: TimerInstance> UarteRxWithIdle<'d, T, U> { | |||
| 791 | } | 791 | } |
| 792 | } | 792 | } |
| 793 | 793 | ||
| 794 | #[cfg(not(any(feature = "_nrf9160", feature = "nrf5340")))] | 794 | #[cfg(not(any(feature = "_nrf9160", feature = "_nrf5340")))] |
| 795 | pub(crate) fn apply_workaround_for_enable_anomaly(_r: &crate::pac::uarte0::RegisterBlock) { | 795 | pub(crate) fn apply_workaround_for_enable_anomaly(_r: &crate::pac::uarte0::RegisterBlock) { |
| 796 | // Do nothing | 796 | // Do nothing |
| 797 | } | 797 | } |
| 798 | 798 | ||
| 799 | #[cfg(any(feature = "_nrf9160", feature = "nrf5340"))] | 799 | #[cfg(any(feature = "_nrf9160", feature = "_nrf5340"))] |
| 800 | pub(crate) fn apply_workaround_for_enable_anomaly(r: &crate::pac::uarte0::RegisterBlock) { | 800 | pub(crate) fn apply_workaround_for_enable_anomaly(r: &crate::pac::uarte0::RegisterBlock) { |
| 801 | use core::ops::Deref; | ||
| 802 | |||
| 803 | // Apply workaround for anomalies: | 801 | // Apply workaround for anomalies: |
| 804 | // - nRF9160 - anomaly 23 | 802 | // - nRF9160 - anomaly 23 |
| 805 | // - nRF5340 - anomaly 44 | 803 | // - nRF5340 - anomaly 44 |
| 806 | let rxenable_reg: *const u32 = ((r.deref() as *const _ as usize) + 0x564) as *const u32; | 804 | let rxenable_reg: *const u32 = ((r as *const _ as usize) + 0x564) as *const u32; |
| 807 | let txenable_reg: *const u32 = ((r.deref() as *const _ as usize) + 0x568) as *const u32; | 805 | let txenable_reg: *const u32 = ((r as *const _ as usize) + 0x568) as *const u32; |
| 808 | 806 | ||
| 809 | // NB Safety: This is taken from Nordic's driver - | 807 | // NB Safety: This is taken from Nordic's driver - |
| 810 | // https://github.com/NordicSemiconductor/nrfx/blob/master/drivers/src/nrfx_uarte.c#L197 | 808 | // https://github.com/NordicSemiconductor/nrfx/blob/master/drivers/src/nrfx_uarte.c#L197 |
diff --git a/embassy-rp/src/lib.rs b/embassy-rp/src/lib.rs index 980ebe7f4..4e4542d70 100644 --- a/embassy-rp/src/lib.rs +++ b/embassy-rp/src/lib.rs | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | #![no_std] | 1 | #![no_std] |
| 2 | #![cfg_attr(feature = "nightly", feature(async_fn_in_trait, impl_trait_projections))] | 2 | #![cfg_attr(feature = "nightly", feature(async_fn_in_trait, impl_trait_projections))] |
| 3 | #![cfg_attr(feature = "nightly", allow(incomplete_features))] | ||
| 4 | 3 | ||
| 5 | // This mod MUST go first, so that the others see its macros. | 4 | // This mod MUST go first, so that the others see its macros. |
| 6 | pub(crate) mod fmt; | 5 | pub(crate) mod fmt; |
diff --git a/embassy-stm32/src/lib.rs b/embassy-stm32/src/lib.rs index 3283c4062..1920e2642 100644 --- a/embassy-stm32/src/lib.rs +++ b/embassy-stm32/src/lib.rs | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | #![no_std] | 1 | #![no_std] |
| 2 | #![cfg_attr(feature = "nightly", feature(async_fn_in_trait, impl_trait_projections))] | 2 | #![cfg_attr(feature = "nightly", feature(async_fn_in_trait, impl_trait_projections))] |
| 3 | #![cfg_attr(feature = "nightly", allow(incomplete_features))] | ||
| 4 | 3 | ||
| 5 | // This must go FIRST so that all the other modules see its macros. | 4 | // This must go FIRST so that all the other modules see its macros. |
| 6 | pub mod fmt; | 5 | pub mod fmt; |
diff --git a/embassy-stm32/src/sdmmc/mod.rs b/embassy-stm32/src/sdmmc/mod.rs index 433f73d79..be788f1b0 100644 --- a/embassy-stm32/src/sdmmc/mod.rs +++ b/embassy-stm32/src/sdmmc/mod.rs | |||
| @@ -188,7 +188,9 @@ fn clk_div(ker_ck: Hertz, sdmmc_ck: u32) -> Result<(bool, u16, Hertz), Error> { | |||
| 188 | #[cfg(sdmmc_v1)] | 188 | #[cfg(sdmmc_v1)] |
| 189 | type Transfer<'a, C> = crate::dma::Transfer<'a, C>; | 189 | type Transfer<'a, C> = crate::dma::Transfer<'a, C>; |
| 190 | #[cfg(sdmmc_v2)] | 190 | #[cfg(sdmmc_v2)] |
| 191 | type Transfer<'a, C> = core::marker::PhantomData<&'a mut C>; | 191 | struct Transfer<'a, C> { |
| 192 | _dummy: core::marker::PhantomData<&'a mut C>, | ||
| 193 | } | ||
| 192 | 194 | ||
| 193 | #[cfg(all(sdmmc_v1, dma))] | 195 | #[cfg(all(sdmmc_v1, dma))] |
| 194 | const DMA_TRANSFER_OPTIONS: crate::dma::TransferOptions = crate::dma::TransferOptions { | 196 | const DMA_TRANSFER_OPTIONS: crate::dma::TransferOptions = crate::dma::TransferOptions { |
| @@ -539,7 +541,9 @@ impl<'d, T: Instance, Dma: SdmmcDma<T> + 'd> Sdmmc<'d, T, Dma> { | |||
| 539 | let transfer = { | 541 | let transfer = { |
| 540 | regs.idmabase0r().write(|w| w.set_idmabase0(buffer.as_mut_ptr() as u32)); | 542 | regs.idmabase0r().write(|w| w.set_idmabase0(buffer.as_mut_ptr() as u32)); |
| 541 | regs.idmactrlr().modify(|w| w.set_idmaen(true)); | 543 | regs.idmactrlr().modify(|w| w.set_idmaen(true)); |
| 542 | core::marker::PhantomData | 544 | Transfer { |
| 545 | _dummy: core::marker::PhantomData, | ||
| 546 | } | ||
| 543 | }; | 547 | }; |
| 544 | 548 | ||
| 545 | regs.dctrl().modify(|w| { | 549 | regs.dctrl().modify(|w| { |
| @@ -593,7 +597,9 @@ impl<'d, T: Instance, Dma: SdmmcDma<T> + 'd> Sdmmc<'d, T, Dma> { | |||
| 593 | let transfer = { | 597 | let transfer = { |
| 594 | regs.idmabase0r().write(|w| w.set_idmabase0(buffer.as_ptr() as u32)); | 598 | regs.idmabase0r().write(|w| w.set_idmabase0(buffer.as_ptr() as u32)); |
| 595 | regs.idmactrlr().modify(|w| w.set_idmaen(true)); | 599 | regs.idmactrlr().modify(|w| w.set_idmaen(true)); |
| 596 | core::marker::PhantomData | 600 | Transfer { |
| 601 | _dummy: core::marker::PhantomData, | ||
| 602 | } | ||
| 597 | }; | 603 | }; |
| 598 | 604 | ||
| 599 | regs.dctrl().modify(|w| { | 605 | regs.dctrl().modify(|w| { |
diff --git a/embassy-sync/src/lib.rs b/embassy-sync/src/lib.rs index f9435ecff..53d95d081 100644 --- a/embassy-sync/src/lib.rs +++ b/embassy-sync/src/lib.rs | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | #![cfg_attr(not(any(feature = "std", feature = "wasm")), no_std)] | 1 | #![cfg_attr(not(any(feature = "std", feature = "wasm")), no_std)] |
| 2 | #![cfg_attr(feature = "nightly", feature(async_fn_in_trait, impl_trait_projections))] | 2 | #![cfg_attr(feature = "nightly", feature(async_fn_in_trait, impl_trait_projections))] |
| 3 | #![cfg_attr(feature = "nightly", allow(incomplete_features))] | ||
| 4 | #![allow(clippy::new_without_default)] | 3 | #![allow(clippy::new_without_default)] |
| 5 | #![doc = include_str!("../README.md")] | 4 | #![doc = include_str!("../README.md")] |
| 6 | #![warn(missing_docs)] | 5 | #![warn(missing_docs)] |
diff --git a/embassy-time/src/lib.rs b/embassy-time/src/lib.rs index 8b0aebe19..8f57eabcb 100644 --- a/embassy-time/src/lib.rs +++ b/embassy-time/src/lib.rs | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | #![cfg_attr(not(any(feature = "std", feature = "wasm", test)), no_std)] | 1 | #![cfg_attr(not(any(feature = "std", feature = "wasm", test)), no_std)] |
| 2 | #![cfg_attr(feature = "nightly", feature(async_fn_in_trait))] | 2 | #![cfg_attr(feature = "nightly", feature(async_fn_in_trait))] |
| 3 | #![cfg_attr(feature = "nightly", allow(incomplete_features))] | ||
| 4 | #![doc = include_str!("../README.md")] | 3 | #![doc = include_str!("../README.md")] |
| 5 | #![allow(clippy::new_without_default)] | 4 | #![allow(clippy::new_without_default)] |
| 6 | #![warn(missing_docs)] | 5 | #![warn(missing_docs)] |
diff --git a/embassy-time/src/queue_generic.rs b/embassy-time/src/queue_generic.rs index 0f67d9dbb..64a8af4bc 100644 --- a/embassy-time/src/queue_generic.rs +++ b/embassy-time/src/queue_generic.rs | |||
| @@ -64,7 +64,7 @@ impl InnerQueue { | |||
| 64 | self.queue | 64 | self.queue |
| 65 | .iter_mut() | 65 | .iter_mut() |
| 66 | .find(|timer| timer.waker.will_wake(waker)) | 66 | .find(|timer| timer.waker.will_wake(waker)) |
| 67 | .map(|mut timer| { | 67 | .map(|timer| { |
| 68 | timer.at = min(timer.at, at); | 68 | timer.at = min(timer.at, at); |
| 69 | }) | 69 | }) |
| 70 | .unwrap_or_else(|| { | 70 | .unwrap_or_else(|| { |
diff --git a/embassy-usb-driver/src/lib.rs b/embassy-usb-driver/src/lib.rs index 2c05f94f7..86e37595b 100644 --- a/embassy-usb-driver/src/lib.rs +++ b/embassy-usb-driver/src/lib.rs | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | #![no_std] | 1 | #![no_std] |
| 2 | #![feature(async_fn_in_trait)] | 2 | #![feature(async_fn_in_trait)] |
| 3 | #![allow(incomplete_features)] | ||
| 4 | #![doc = include_str!("../README.md")] | 3 | #![doc = include_str!("../README.md")] |
| 5 | #![warn(missing_docs)] | 4 | #![warn(missing_docs)] |
| 6 | 5 | ||
diff --git a/examples/stm32wl/src/bin/lora_lorawan.rs b/examples/stm32wl/src/bin/lora_lorawan.rs index 644ce2959..1a271b2f2 100644 --- a/examples/stm32wl/src/bin/lora_lorawan.rs +++ b/examples/stm32wl/src/bin/lora_lorawan.rs | |||
| @@ -4,7 +4,6 @@ | |||
| 4 | #![no_main] | 4 | #![no_main] |
| 5 | #![macro_use] | 5 | #![macro_use] |
| 6 | #![feature(type_alias_impl_trait, async_fn_in_trait)] | 6 | #![feature(type_alias_impl_trait, async_fn_in_trait)] |
| 7 | #![allow(incomplete_features)] | ||
| 8 | 7 | ||
| 9 | use defmt::info; | 8 | use defmt::info; |
| 10 | use embassy_executor::Spawner; | 9 | 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 81e9c7057..5e80e8f6a 100644 --- a/examples/stm32wl/src/bin/lora_p2p_receive.rs +++ b/examples/stm32wl/src/bin/lora_p2p_receive.rs | |||
| @@ -4,7 +4,6 @@ | |||
| 4 | #![no_main] | 4 | #![no_main] |
| 5 | #![macro_use] | 5 | #![macro_use] |
| 6 | #![feature(type_alias_impl_trait, async_fn_in_trait)] | 6 | #![feature(type_alias_impl_trait, async_fn_in_trait)] |
| 7 | #![allow(incomplete_features)] | ||
| 8 | 7 | ||
| 9 | use defmt::info; | 8 | use defmt::info; |
| 10 | use embassy_executor::Spawner; | 9 | 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 263d4e670..e22c714bd 100644 --- a/examples/stm32wl/src/bin/lora_p2p_send.rs +++ b/examples/stm32wl/src/bin/lora_p2p_send.rs | |||
| @@ -4,7 +4,6 @@ | |||
| 4 | #![no_main] | 4 | #![no_main] |
| 5 | #![macro_use] | 5 | #![macro_use] |
| 6 | #![feature(type_alias_impl_trait, async_fn_in_trait)] | 6 | #![feature(type_alias_impl_trait, async_fn_in_trait)] |
| 7 | #![allow(incomplete_features)] | ||
| 8 | 7 | ||
| 9 | use defmt::info; | 8 | use defmt::info; |
| 10 | use embassy_executor::Spawner; | 9 | use embassy_executor::Spawner; |
diff --git a/examples/wasm/src/lib.rs b/examples/wasm/src/lib.rs index d44c020b6..edfe8bafc 100644 --- a/examples/wasm/src/lib.rs +++ b/examples/wasm/src/lib.rs | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | #![feature(type_alias_impl_trait)] | 1 | #![feature(type_alias_impl_trait)] |
| 2 | #![allow(incomplete_features)] | ||
| 3 | 2 | ||
| 4 | use embassy_executor::Spawner; | 3 | use embassy_executor::Spawner; |
| 5 | use embassy_time::{Duration, Timer}; | 4 | use embassy_time::{Duration, Timer}; |
diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 2301ddc8d..fd454db26 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # Before upgrading check that everything is available on all tier1 targets here: | 1 | # Before upgrading check that everything is available on all tier1 targets here: |
| 2 | # https://rust-lang.github.io/rustup-components-history | 2 | # https://rust-lang.github.io/rustup-components-history |
| 3 | [toolchain] | 3 | [toolchain] |
| 4 | channel = "nightly-2023-04-18" | 4 | channel = "nightly-2023-05-18" |
| 5 | components = [ "rust-src", "rustfmt", "llvm-tools-preview" ] | 5 | components = [ "rust-src", "rustfmt", "llvm-tools-preview" ] |
| 6 | targets = [ | 6 | targets = [ |
| 7 | "thumbv7em-none-eabi", | 7 | "thumbv7em-none-eabi", |
