Skip to content

Commit 4ba806f

Browse files
bonziniBennoLossin
authored andcommitted
cargo: add unexpected_cfgs support
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 3f0927c commit 4ba806f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ trybuild = { version = "1.0", features = ["diff"] }
2828
macrotest = "1.0"
2929
# needed for macrotest, have to enable verbatim feature to be able to format `&raw` expressions.
3030
prettyplease = { version = "0.2", features = ["verbatim"] }
31+
32+
[lints.rust]
33+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(NO_UI_TESTS)', 'cfg(NO_ALLOC_FAIL_TESTS)'] }

0 commit comments

Comments
 (0)