From edafa4ef413e2976f588d7062ad62218f2563e87 Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Wed, 7 Aug 2024 20:37:18 +0200 Subject: [PATCH] Fix CI with 1.80 --- examples/lm3s6965/Cargo.lock | 2 +- examples/lm3s6965/examples/t-cfg-resources.rs | 1 + rtic-monotonics/build.rs | 1 + rtic/src/lib.rs | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/lm3s6965/Cargo.lock b/examples/lm3s6965/Cargo.lock index c007019fa22b..c599ef8a1d89 100644 --- a/examples/lm3s6965/Cargo.lock +++ b/examples/lm3s6965/Cargo.lock @@ -386,7 +386,7 @@ dependencies = [ [[package]] name = "rtic-monotonics" -version = "2.0.1" +version = "2.0.2" dependencies = [ "cfg-if", "cortex-m", diff --git a/examples/lm3s6965/examples/t-cfg-resources.rs b/examples/lm3s6965/examples/t-cfg-resources.rs index 2ddfae738f78..d042558c4c8b 100644 --- a/examples/lm3s6965/examples/t-cfg-resources.rs +++ b/examples/lm3s6965/examples/t-cfg-resources.rs @@ -5,6 +5,7 @@ #![deny(warnings)] #![deny(unsafe_code)] #![deny(missing_docs)] +#![allow(unexpected_cfgs)] use panic_semihosting as _; diff --git a/rtic-monotonics/build.rs b/rtic-monotonics/build.rs index 21ccce9f51a7..12d236ef70e8 100644 --- a/rtic-monotonics/build.rs +++ b/rtic-monotonics/build.rs @@ -2,6 +2,7 @@ fn main() { #[cfg(feature = "stm32-metapac")] stm32(); + println!("cargo::rustc-check-cfg=cfg(stm32)"); println!("cargo:rerun-if-changed=build.rs"); } diff --git a/rtic/src/lib.rs b/rtic/src/lib.rs index 5b0971fd7bec..1fd0d43a4e7a 100644 --- a/rtic/src/lib.rs +++ b/rtic/src/lib.rs @@ -31,6 +31,7 @@ html_favicon_url = "https://raw.githubusercontent.com/rtic-rs/rtic/master/book/en/src/RTIC.svg" )] #![allow(clippy::inline_always)] +#![allow(unexpected_cfgs)] pub use rtic_core::{prelude as mutex_prelude, Exclusive, Mutex}; pub use rtic_macros::app;