@@ -23,7 +23,7 @@ use crate::channel::{self, GitInfo};
2323pub use crate :: flags:: Subcommand ;
2424use crate :: flags:: { Color , Flags , Warnings } ;
2525use crate :: util:: { exe, output, t} ;
26- use build_helper:: detail_exit_macro ;
26+ use build_helper:: exit ;
2727use once_cell:: sync:: OnceCell ;
2828use semver:: Version ;
2929use serde:: { Deserialize , Deserializer } ;
@@ -646,7 +646,7 @@ macro_rules! define_config {
646646 panic!( "overriding existing option" )
647647 } else {
648648 eprintln!( "overriding existing option: `{}`" , stringify!( $field) ) ;
649- detail_exit_macro !( 2 ) ;
649+ exit !( 2 ) ;
650650 }
651651 } else {
652652 self . $field = other. $field;
@@ -745,7 +745,7 @@ impl<T> Merge for Option<T> {
745745 panic ! ( "overriding existing option" )
746746 } else {
747747 eprintln ! ( "overriding existing option" ) ;
748- detail_exit_macro ! ( 2 ) ;
748+ exit ! ( 2 ) ;
749749 }
750750 } else {
751751 * self = other;
@@ -1101,7 +1101,7 @@ impl Config {
11011101 . and_then ( |table : toml:: Value | TomlConfig :: deserialize ( table) )
11021102 . unwrap_or_else ( |err| {
11031103 eprintln ! ( "failed to parse TOML configuration '{}': {err}" , file. display( ) ) ;
1104- detail_exit_macro ! ( 2 ) ;
1104+ exit ! ( 2 ) ;
11051105 } )
11061106 }
11071107 Self :: parse_inner ( args, get_toml)
@@ -1135,7 +1135,7 @@ impl Config {
11351135 eprintln ! (
11361136 "Cannot use both `llvm_bolt_profile_generate` and `llvm_bolt_profile_use` at the same time"
11371137 ) ;
1138- detail_exit_macro ! ( 1 ) ;
1138+ exit ! ( 1 ) ;
11391139 }
11401140
11411141 // Infer the rest of the configuration.
@@ -1259,7 +1259,7 @@ impl Config {
12591259 }
12601260 }
12611261 eprintln ! ( "failed to parse override `{option}`: `{err}" ) ;
1262- detail_exit_macro ! ( 2 )
1262+ exit ! ( 2 )
12631263 }
12641264 toml. merge ( override_toml, ReplaceOpt :: Override ) ;
12651265
@@ -2007,7 +2007,7 @@ impl Config {
20072007 "Unexpected rustc version: {}, we should use {}/{} to build source with {}" ,
20082008 rustc_version, prev_version, source_version, source_version
20092009 ) ;
2010- detail_exit_macro ! ( 1 ) ;
2010+ exit ! ( 1 ) ;
20112011 }
20122012 }
20132013
@@ -2043,7 +2043,7 @@ impl Config {
20432043 println ! ( "help: maybe your repository history is too shallow?" ) ;
20442044 println ! ( "help: consider disabling `download-rustc`" ) ;
20452045 println ! ( "help: or fetch enough history to include one upstream commit" ) ;
2046- crate :: detail_exit_macro !( 1 ) ;
2046+ crate :: exit !( 1 ) ;
20472047 }
20482048
20492049 // Warn if there were changes to the compiler or standard library since the ancestor commit.
0 commit comments