mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 13:13:40 +00:00
Inspect CFG_RELEASE_CHANNEL env var at compile time
This commit is contained in:
parent
4018873d4b
commit
ef4b3d9bfa
@ -24,9 +24,9 @@ use Summary;
|
||||
|
||||
macro_rules! is_nightly_channel {
|
||||
() => {
|
||||
env::var("CFG_RELEASE_CHANNEL")
|
||||
.map(|c| c == "nightly")
|
||||
.unwrap_or(false)
|
||||
option_env!("CFG_RELEASE_CHANNEL")
|
||||
.map(|c| c == "nightly")
|
||||
.unwrap_or(false)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user