diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-11-12 16:28:26 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-11-12 16:28:26 +0100 |
| commit | baeb59b5b8d63ef9bb6ecada518ea8b911d2dc30 (patch) | |
| tree | a27e2f99887c06f0c2279d385acbdebbe704a5c8 /embassy-executor/build_common.rs | |
| parent | c66f83db702e95e010b944cdf1b0f4a9dfe771df (diff) | |
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.
Diffstat (limited to 'embassy-executor/build_common.rs')
| -rw-r--r-- | embassy-executor/build_common.rs | 19 |
1 files changed, 0 insertions, 19 deletions
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 { | |||
| 124 | Self::parse(other).map(|other| self.cmp(&other)) | 124 | Self::parse(other).map(|other| self.cmp(&other)) |
| 125 | } | 125 | } |
| 126 | } | 126 | } |
| 127 | |||
| 128 | pub struct CompilerInfo { | ||
| 129 | #[allow(unused)] | ||
| 130 | pub version: rustc_version::Version, | ||
| 131 | pub channel: rustc_version::Channel, | ||
| 132 | pub commit_date: Option<CompilerDate>, | ||
| 133 | } | ||
| 134 | |||
| 135 | pub fn compiler_info() -> Option<CompilerInfo> { | ||
| 136 | let Ok(meta) = rustc_version::version_meta() else { | ||
| 137 | return None; | ||
| 138 | }; | ||
| 139 | |||
| 140 | Some(CompilerInfo { | ||
| 141 | version: meta.semver, | ||
| 142 | channel: meta.channel, | ||
| 143 | commit_date: meta.commit_date.as_deref().and_then(CompilerDate::parse), | ||
| 144 | }) | ||
| 145 | } | ||
