We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68e06ad commit 52808ceCopy full SHA for 52808ce
build.rs
@@ -1,6 +1,7 @@
1
use std::env;
2
use std::process::Command;
3
use std::str;
4
+use std::string::String;
5
6
// List of cfgs this build script is allowed to set. The list is needed to support check-cfg, as we
7
// need to know all the possible cfgs that this script will set. If you need to set another cfg
@@ -181,6 +182,13 @@ fn rustc_minor_nightly() -> (u32, bool) {
181
182
.output()
183
.ok()
184
.expect("Failed to get rustc version");
185
+ if !output.status.success() {
186
+ panic!(
187
+ "failed to run rustc: {}",
188
+ String::from_utf8_lossy(output.stderr.as_slice())
189
+ );
190
+ }
191
+
192
let version = otry!(str::from_utf8(&output.stdout).ok());
193
let mut pieces = version.split('.');
194
0 commit comments