From baeb59b5b8d63ef9bb6ecada518ea8b911d2dc30 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Tue, 12 Nov 2024 16:28:26 +0100 Subject: executor: use WakerHack unconditionally even if `nightly` feature is enabled. (#3528) This ensures the executor compiles with all recent nightly versions, including the stable-but-with-nightly-features-enabled xtensa rustc. --- embassy-executor/build.rs | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'embassy-executor/build.rs') diff --git a/embassy-executor/build.rs b/embassy-executor/build.rs index c4c86e1e2..8a41d7503 100644 --- a/embassy-executor/build.rs +++ b/embassy-executor/build.rs @@ -96,15 +96,4 @@ fn main() { let mut rustc_cfgs = common::CfgSet::new(); common::set_target_cfgs(&mut rustc_cfgs); - - // Waker API changed on 2024-09-06 - rustc_cfgs.declare("at_least_2024_09_06"); - let Some(compiler) = common::compiler_info() else { - return; - }; - if compiler.channel == rustc_version::Channel::Nightly - && compiler.commit_date.map(|d| d >= "2024-09-06").unwrap_or(false) - { - rustc_cfgs.enable("at_least_2024_09_06"); - } } -- cgit