Fix CI with 1.80

This commit is contained in:
Emil Fresk 2024-08-07 20:37:18 +02:00
parent f925cbe506
commit 3e65a83110
7 changed files with 11 additions and 9 deletions

View file

@ -434,10 +434,11 @@ jobs:
tool: cargo-binutils tool: cargo-binutils
# Use precompiled if possible # Use precompiled if possible
- name: Install cargo-binutils - name: Install espflash
uses: taiki-e/install-action@v2 run: cargo install espflash --version 3.1.0 --force
with: # uses: taiki-e/install-action@v2
tool: espflash # with:
# tool: espflash
- name: Install esptool.py - name: Install esptool.py
run: pip install esptool run: pip install esptool

View file

@ -386,7 +386,7 @@ dependencies = [
[[package]] [[package]]
name = "rtic-monotonics" name = "rtic-monotonics"
version = "2.0.1" version = "2.0.2"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"cortex-m", "cortex-m",

View file

@ -5,6 +5,7 @@
#![deny(warnings)] #![deny(warnings)]
#![deny(unsafe_code)] #![deny(unsafe_code)]
#![deny(missing_docs)] #![deny(missing_docs)]
#![allow(unexpected_cfgs)]
use panic_semihosting as _; use panic_semihosting as _;

View file

@ -2,6 +2,7 @@ fn main() {
#[cfg(feature = "stm32-metapac")] #[cfg(feature = "stm32-metapac")]
stm32(); stm32();
println!("cargo::rustc-check-cfg=cfg(stm32)");
println!("cargo:rerun-if-changed=build.rs"); println!("cargo:rerun-if-changed=build.rs");
} }

View file

@ -62,15 +62,13 @@ impl<T, const N: usize> Default for Channel<T, N> {
impl<T, const N: usize> Channel<T, N> { impl<T, const N: usize> Channel<T, N> {
const _CHECK: () = assert!(N < 256, "This queue support a maximum of 255 entries"); const _CHECK: () = assert!(N < 256, "This queue support a maximum of 255 entries");
const INIT_SLOTS: UnsafeCell<MaybeUninit<T>> = UnsafeCell::new(MaybeUninit::uninit());
/// Create a new channel. /// Create a new channel.
pub const fn new() -> Self { pub const fn new() -> Self {
Self { Self {
freeq: UnsafeCell::new(Deque::new()), freeq: UnsafeCell::new(Deque::new()),
readyq: UnsafeCell::new(Deque::new()), readyq: UnsafeCell::new(Deque::new()),
receiver_waker: WakerRegistration::new(), receiver_waker: WakerRegistration::new(),
slots: [Self::INIT_SLOTS; N], slots: [const { UnsafeCell::new(MaybeUninit::uninit()) }; N],
wait_queue: WaitQueue::new(), wait_queue: WaitQueue::new(),
receiver_dropped: UnsafeCell::new(false), receiver_dropped: UnsafeCell::new(false),
num_senders: UnsafeCell::new(0), num_senders: UnsafeCell::new(0),

View file

@ -102,7 +102,7 @@ where
/// - we execute the closure in a global critical section (interrupt free) /// - we execute the closure in a global critical section (interrupt free)
/// - CS entry cost, single write to core register /// - CS entry cost, single write to core register
/// - CS exit cost, single write to core register /// - CS exit cost, single write to core register
/// else /// - else
/// - The `mask` value is folded to a constant at compile time /// - The `mask` value is folded to a constant at compile time
/// - CS entry, single write of the 32 bit `mask` to the `icer` register /// - CS entry, single write of the 32 bit `mask` to the `icer` register
/// - CS exit, single write of the 32 bit `mask` to the `iser` register /// - CS exit, single write of the 32 bit `mask` to the `iser` register

View file

@ -31,6 +31,7 @@
html_favicon_url = "https://raw.githubusercontent.com/rtic-rs/rtic/master/book/en/src/RTIC.svg" html_favicon_url = "https://raw.githubusercontent.com/rtic-rs/rtic/master/book/en/src/RTIC.svg"
)] )]
#![allow(clippy::inline_always)] #![allow(clippy::inline_always)]
#![allow(unexpected_cfgs)]
pub use rtic_core::{prelude as mutex_prelude, Exclusive, Mutex}; pub use rtic_core::{prelude as mutex_prelude, Exclusive, Mutex};
pub use rtic_macros::app; pub use rtic_macros::app;