File tree 2 files changed +10
-1
lines changed 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ log = "0.4"
23
23
once_cell = " 1.20"
24
24
regex = " 1.0"
25
25
rustfix = " 0.8"
26
+ rustversion = " 1.0"
26
27
serde = " 1.0"
27
28
serde_derive = " 1.0"
28
29
serde_json = " 1.0"
Original file line number Diff line number Diff line change @@ -415,10 +415,18 @@ mod config_tempdir {
415
415
#[ cfg( feature = "tmp" ) ]
416
416
pub use self :: config_tempdir:: ConfigWithTemp ;
417
417
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
+
418
426
impl Default for Config {
419
427
fn default ( ) -> Config {
420
428
#[ cfg( feature = "rustc" ) ]
421
- let platform = rustc_session :: config :: host_triple ( ) . to_string ( ) ;
429
+ let platform = host ( ) . to_string ( ) ;
422
430
423
431
Config {
424
432
bless : false ,
You can’t perform that action at this time.
0 commit comments