Skip to content

Commit 7748947

Browse files
committed
Fix unexpected cfg condition name: ... warnings introduced in Rust 1.80
See https://blog.rust-lang.org/2024/05/06/check-cfg.html
1 parent c507ff8 commit 7748947

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

futures/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
println!("cargo:rustc-check-cfg=cfg(futures_sanitizer)");
3+
}

futures/tests/no-std/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use std::{env, process::Command};
22

33
fn main() {
4+
println!("cargo:rustc-check-cfg=cfg(nightly)");
45
if is_nightly() {
56
println!("cargo:rustc-cfg=nightly");
67
}

0 commit comments

Comments
 (0)