@@ -23,7 +23,7 @@ use crate::channel::{self, GitInfo};
23
23
pub use crate :: flags:: Subcommand ;
24
24
use crate :: flags:: { Color , Flags , Warnings } ;
25
25
use crate :: util:: { exe, output, t} ;
26
- use build_helper:: detail_exit_macro ;
26
+ use build_helper:: exit ;
27
27
use once_cell:: sync:: OnceCell ;
28
28
use semver:: Version ;
29
29
use serde:: { Deserialize , Deserializer } ;
@@ -646,7 +646,7 @@ macro_rules! define_config {
646
646
panic!( "overriding existing option" )
647
647
} else {
648
648
eprintln!( "overriding existing option: `{}`" , stringify!( $field) ) ;
649
- detail_exit_macro !( 2 ) ;
649
+ exit !( 2 ) ;
650
650
}
651
651
} else {
652
652
self . $field = other. $field;
@@ -745,7 +745,7 @@ impl<T> Merge for Option<T> {
745
745
panic ! ( "overriding existing option" )
746
746
} else {
747
747
eprintln ! ( "overriding existing option" ) ;
748
- detail_exit_macro ! ( 2 ) ;
748
+ exit ! ( 2 ) ;
749
749
}
750
750
} else {
751
751
* self = other;
@@ -1101,7 +1101,7 @@ impl Config {
1101
1101
. and_then ( |table : toml:: Value | TomlConfig :: deserialize ( table) )
1102
1102
. unwrap_or_else ( |err| {
1103
1103
eprintln ! ( "failed to parse TOML configuration '{}': {err}" , file. display( ) ) ;
1104
- detail_exit_macro ! ( 2 ) ;
1104
+ exit ! ( 2 ) ;
1105
1105
} )
1106
1106
}
1107
1107
Self :: parse_inner ( args, get_toml)
@@ -1135,7 +1135,7 @@ impl Config {
1135
1135
eprintln ! (
1136
1136
"Cannot use both `llvm_bolt_profile_generate` and `llvm_bolt_profile_use` at the same time"
1137
1137
) ;
1138
- detail_exit_macro ! ( 1 ) ;
1138
+ exit ! ( 1 ) ;
1139
1139
}
1140
1140
1141
1141
// Infer the rest of the configuration.
@@ -1259,7 +1259,7 @@ impl Config {
1259
1259
}
1260
1260
}
1261
1261
eprintln ! ( "failed to parse override `{option}`: `{err}" ) ;
1262
- detail_exit_macro ! ( 2 )
1262
+ exit ! ( 2 )
1263
1263
}
1264
1264
toml. merge ( override_toml, ReplaceOpt :: Override ) ;
1265
1265
@@ -2007,7 +2007,7 @@ impl Config {
2007
2007
"Unexpected rustc version: {}, we should use {}/{} to build source with {}" ,
2008
2008
rustc_version, prev_version, source_version, source_version
2009
2009
) ;
2010
- detail_exit_macro ! ( 1 ) ;
2010
+ exit ! ( 1 ) ;
2011
2011
}
2012
2012
}
2013
2013
@@ -2043,7 +2043,7 @@ impl Config {
2043
2043
println ! ( "help: maybe your repository history is too shallow?" ) ;
2044
2044
println ! ( "help: consider disabling `download-rustc`" ) ;
2045
2045
println ! ( "help: or fetch enough history to include one upstream commit" ) ;
2046
- crate :: detail_exit_macro !( 1 ) ;
2046
+ crate :: exit !( 1 ) ;
2047
2047
}
2048
2048
2049
2049
// Warn if there were changes to the compiler or standard library since the ancestor commit.
0 commit comments