]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/setup.rs
Auto merge of #98017 - RalfJung:dereferenceable, r=nikic
[rust.git] / src / bootstrap / setup.rs
index e6f6460729af6a2897cd5b1f3fe0e7ef561380aa..a5a39a5a3cfc6355cc784d15ac65cb82944bfbf0 100644 (file)
@@ -94,7 +94,7 @@ pub fn setup(config: &Config, profile: Profile) {
             "note: this will use the configuration in {}",
             profile.include_path(&config.src).display()
         );
-        std::process::exit(1);
+        crate::detail_exit(1);
     }
 
     let settings = format!(
@@ -287,7 +287,7 @@ fn parse_with_abbrev(input: &str) -> Result<Profile, String> {
         io::stdin().read_line(&mut input)?;
         if input.is_empty() {
             eprintln!("EOF on stdin, when expecting answer to question.  Giving up.");
-            std::process::exit(1);
+            crate::detail_exit(1);
         }
         break match parse_with_abbrev(&input) {
             Ok(profile) => profile,