Skip to content

Commit

Permalink
tests: Address unexpected_cfgs warning
Browse files Browse the repository at this point in the history
```
error: unexpected `cfg` condition name: `nightly`
 --> tests/no-core/lib.rs:3:8
  |
3 | #![cfg(nightly)]
  |        ^^^^^^^
```
  • Loading branch information
taiki-e committed May 5, 2024
1 parent 29fc2ef commit 386e417
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/no-core/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use std::{env, process::Command};

fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rustc-check-cfg=cfg(nightly)");

if is_nightly() {
println!("cargo:rustc-cfg=nightly");
Expand Down

0 comments on commit 386e417

Please sign in to comment.