summaryrefslogtreecommitdiffstats
path: root/vendor/portable-atomic/version.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/portable-atomic/version.rs')
-rw-r--r--vendor/portable-atomic/version.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/vendor/portable-atomic/version.rs b/vendor/portable-atomic/version.rs
index 7ebbd38e1..383dadf01 100644
--- a/vendor/portable-atomic/version.rs
+++ b/vendor/portable-atomic/version.rs
@@ -1,3 +1,5 @@
+// SPDX-License-Identifier: Apache-2.0 OR MIT
+
use std::{env, process::Command, str};
pub(crate) fn rustc_version() -> Option<Version> {
@@ -21,8 +23,8 @@ impl Version {
// the rustc version, we assume this is the current version.
// It is no problem if this is older than the actual latest stable.
// LLVM version is assumed to be the minimum external LLVM version:
- // https://github.com/rust-lang/rust/blob/1.71.0/src/bootstrap/llvm.rs#L529
- pub(crate) const LATEST: Self = Self::stable(71, 14);
+ // https://github.com/rust-lang/rust/blob/1.73.0/src/bootstrap/llvm.rs#L551
+ pub(crate) const LATEST: Self = Self::stable(73, 15);
pub(crate) const fn stable(rustc_minor: u32, llvm_major: u32) -> Self {
Self { minor: rustc_minor, nightly: false, commit_date: Date::UNKNOWN, llvm: llvm_major }
@@ -87,14 +89,14 @@ impl Version {
}
Some(Date::new(year, month, day))
})();
- Some(Version {
+ Some(Self {
minor,
nightly,
commit_date: commit_date.unwrap_or(Date::UNKNOWN),
llvm: llvm_major,
})
} else {
- Some(Version::stable(minor, llvm_major))
+ Some(Self::stable(minor, llvm_major))
}
}
}