We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1151ea6 commit 2bf5f77Copy full SHA for 2bf5f77
src/tools/compiletest/src/header/cfg.rs
@@ -165,11 +165,15 @@ pub(super) fn parse_cfg_name_directive<'a>(
165
message: "when the architecture is part of the Thumb family"
166
}
167
168
+ // Technically the locally built compiler uses the "dev" channel rather than the "nightly"
169
+ // channel, even though most people don't know or won't care about it. To avoid confusion, we
170
+ // treat the "dev" channel as the "nightly" channel when processing the directive.
171
condition! {
- name: &config.channel,
172
+ name: if config.channel == "dev" { "nightly" } else { &config.channel },
173
allowed_names: &["stable", "beta", "nightly"],
174
message: "when the release channel is {name}",
175
176
+
177
178
name: "cross-compile",
179
condition: config.target != config.host,
0 commit comments