From 5e2969e7d5b98717bf681b3f0ab30ffd3595395a Mon Sep 17 00:00:00 2001 From: yukang Date: Sun, 14 May 2023 17:41:53 +0800 Subject: [PATCH] comment feedback --- src/bootstrap/config.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs index 3694c51d194..710c8b52194 100644 --- a/src/bootstrap/config.rs +++ b/src/bootstrap/config.rs @@ -1710,10 +1710,11 @@ impl Config { && source_version.minor == rustc_version.minor + 1)) { let prev_version = format!("{}.{}.x", source_version.major, source_version.minor - 1); - panic!( + eprintln!( "Unexpected rustc version: {}, we should use {}/{} to build source with {}", rustc_version, prev_version, source_version, source_version ); + crate::detail_exit(1); } }