Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit a15df80

Browse files
authored
Consider "dev" as nightly for feature (un)gating
Closes rust-lang#2940
1 parent 693c7d6 commit a15df80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ fn make_opts() -> Options {
160160

161161
fn is_nightly() -> bool {
162162
option_env!("CFG_RELEASE_CHANNEL")
163-
.map(|c| c == "nightly")
163+
.map(|c| c == "nightly" || c == "dev")
164164
.unwrap_or(false)
165165
}
166166

0 commit comments

Comments
 (0)