Skip to content

Commit 9f98c71

Browse files
bonziniBennoLossin
authored andcommitted
bump certain warnings to "deny" if the kernel Makefile blocks them
The kernel is usually compiled with -Dwarnings, so use deny for these as well. Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 250fb87 commit 9f98c71

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Cargo.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,24 @@ macrotest = "1.0"
3030
prettyplease = { version = "0.2", features = ["verbatim"] }
3131

3232
[lints.rust]
33+
non_ascii_idents = "deny"
3334
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(NO_UI_TESTS)', 'cfg(NO_ALLOC_FAIL_TESTS)'] }
35+
unsafe_op_in_unsafe_fn = "deny"
3436
unused_attributes = "deny"
3537

3638
[lints.rustdoc]
39+
missing_crate_level_docs = "deny"
3740
unescaped_backticks = "deny"
3841

3942
[lints.clippy]
4043
# allow this until the modules in examples/ and tests/ are cleaned up
4144
duplicate_mod = "allow"
45+
46+
ignored_unit_patterns = "deny"
47+
mut_mut = "deny"
48+
needless_bitwise_bool = "deny"
49+
needless_continue = "deny"
50+
needless_lifetimes = "deny"
51+
no_mangle_with_rust_abi = "deny"
52+
unnecessary_safety_comment = "deny"
53+
unnecessary_safety_doc = "deny"

0 commit comments

Comments
 (0)