Skip to content

Commit 6b40285

Browse files
committed
s/host_triple/host_tuple/ after 2024-11-03
See rust-lang/rust@a26450cf81d67d68d3c6157579.
1 parent 69c900b commit 6b40285

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ log = "0.4"
2323
once_cell = "1.20"
2424
regex = "1.0"
2525
rustfix = "0.8"
26+
rustversion = "1.0"
2627
serde = "1.0"
2728
serde_derive = "1.0"
2829
serde_json = "1.0"

src/common.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,10 +415,18 @@ mod config_tempdir {
415415
#[cfg(feature = "tmp")]
416416
pub use self::config_tempdir::ConfigWithTemp;
417417

418+
#[cfg(feature = "rustc")]
419+
#[rustversion::since(2024-11-03)]
420+
use rustc_session::config::host_tuple as host;
421+
422+
#[cfg(feature = "rustc")]
423+
#[rustversion::before(2024-11-03)]
424+
use rustc_session::config::host_triple as host;
425+
418426
impl Default for Config {
419427
fn default() -> Config {
420428
#[cfg(feature = "rustc")]
421-
let platform = rustc_session::config::host_triple().to_string();
429+
let platform = host().to_string();
422430

423431
Config {
424432
bless: false,

0 commit comments

Comments
 (0)