We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d33c65c commit ac3cac4Copy full SHA for ac3cac4
src/cargo/core/features.rs
@@ -354,12 +354,18 @@ impl CliUnstable {
354
}
355
356
fn channel() -> String {
357
- env::var("__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS").unwrap_or_else(|_| {
358
- ::version()
359
- .cfg_info
360
- .map(|c| c.release_channel)
361
- .unwrap_or_else(|| String::from("dev"))
362
- })
+ if let Ok(staging) = env::var("RUSTC_BOOTSTRAP") {
+ if staging == "1" {
+ return "dev".to_string();
+ }
+ if let Ok(override_channel) = env::var("__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS") {
363
+ return override_channel;
364
365
+ ::version()
366
+ .cfg_info
367
+ .map(|c| c.release_channel)
368
+ .unwrap_or_else(|| String::from("dev"))
369
370
371
fn nightly_features_allowed() -> bool {
0 commit comments