Skip to content

Commit 99d0a80

Browse files
author
Olivier Goffart
committed
Fix warning in test
1 parent 7660a7e commit 99d0a80

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,10 @@ build = "build.rs"
88
[build-dependencies]
99
cpp_build = { path = "../cpp_build" }
1010

11+
# "non_existent" is intentionally not a real feature — it tests that cpp_build
12+
# skips cfg'd-out modules. Declare it here so check-cfg doesn't warn.
13+
[lints.rust]
14+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(feature, values("non_existent"))'] }
15+
1116
[dependencies]
1217
cpp = { path = "../cpp" }

0 commit comments

Comments
 (0)