Skip to content

Commit 5e2969e

Browse files
committed
comment feedback
1 parent 4648904 commit 5e2969e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/config.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1710,10 +1710,11 @@ impl Config {
17101710
&& source_version.minor == rustc_version.minor + 1))
17111711
{
17121712
let prev_version = format!("{}.{}.x", source_version.major, source_version.minor - 1);
1713-
panic!(
1713+
eprintln!(
17141714
"Unexpected rustc version: {}, we should use {}/{} to build source with {}",
17151715
rustc_version, prev_version, source_version, source_version
17161716
);
1717+
crate::detail_exit(1);
17171718
}
17181719
}
17191720

0 commit comments

Comments
 (0)