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 ac3cac4 commit 1bdb89dCopy full SHA for 1bdb89d
src/cargo/core/features.rs
@@ -354,14 +354,14 @@ impl CliUnstable {
354
}
355
356
fn channel() -> String {
357
+ if let Ok(override_channel) = env::var("__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS") {
358
+ return override_channel;
359
+ }
360
if let Ok(staging) = env::var("RUSTC_BOOTSTRAP") {
361
if staging == "1" {
362
return "dev".to_string();
363
364
- if let Ok(override_channel) = env::var("__CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS") {
- return override_channel;
- }
365
::version()
366
.cfg_info
367
.map(|c| c.release_channel)
0 commit comments