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_common.rs | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'embassy-executor/build_common.rs') diff --git a/embassy-executor/build_common.rs b/embassy-executor/build_common.rs index af6bb0618..b15a8369f 100644 --- a/embassy-executor/build_common.rs +++ b/embassy-executor/build_common.rs @@ -124,22 +124,3 @@ impl PartialOrd<&str> for CompilerDate { Self::parse(other).map(|other| self.cmp(&other)) } } - -pub struct CompilerInfo { - #[allow(unused)] - pub version: rustc_version::Version, - pub channel: rustc_version::Channel, - pub commit_date: Option, -} - -pub fn compiler_info() -> Option { - let Ok(meta) = rustc_version::version_meta() else { - return None; - }; - - Some(CompilerInfo { - version: meta.semver, - channel: meta.channel, - commit_date: meta.commit_date.as_deref().and_then(CompilerDate::parse), - }) -} -- cgit