mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
rust: build: move strict lints handling to rustc_args.py
Make Cargo use unknown_lints = "allow" as well. This is more future proof as we might add new lints to rust/Cargo.toml that are not supported by older versions of rustc or clippy. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
90868c3dce
commit
de98c17593
3 changed files with 26 additions and 11 deletions
|
@ -11,5 +11,11 @@ unexpected_cfgs = { level = "deny", check-cfg = [
|
|||
'cfg(MESON)', 'cfg(HAVE_GLIB_WITH_ALIGNED_ALLOC)',
|
||||
'cfg(has_offset_of)'] }
|
||||
|
||||
# Occasionally, we may need to silence warnings and clippy lints that
|
||||
# were only introduced in newer Rust compiler versions. Do not croak
|
||||
# in that case; a CI job with rust_strict_lints == true disables this
|
||||
# and ensures that we do not have misspelled allow() attributes.
|
||||
unknown_lints = "allow"
|
||||
|
||||
# Prohibit code that is forbidden in Rust 2024
|
||||
unsafe_op_in_unsafe_fn = "deny"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue