Skip to content

Commit b197d96

Browse files
chore(core): move wgpu_validate_locks cfg expectation to build.rs
1 parent 894d036 commit b197d96

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

wgpu-core/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ targets = [
2929
# Cargo machete can't check build.rs dependencies. See https://github.com/bnjbvr/cargo-machete/issues/100
3030
ignored = ["cfg_aliases"]
3131

32-
[lints.rust]
33-
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(wgpu_validate_locks)'] }
34-
3532
[lib]
3633

3734
[features]

wgpu-core/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ fn main() {
2424

2525
supports_64bit_atomics: { target_has_atomic = "64" }
2626
}
27+
println!("cargo::rustc-check-cfg=cfg(wgpu_validate_locks)");
2728
}

0 commit comments

Comments
 (0)