]> www.infradead.org Git - users/dwmw2/qemu.git/commit
rust: silence unknown warnings for the sake of old compilers
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Oct 2024 08:24:01 +0000 (10:24 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Nov 2024 13:18:16 +0000 (14:18 +0100)
commitc6ea723da9acd63fb4ef2350318168bf4645835e
tree895ef46dedb741049e800c1a2e368b10c902ccd9
parent718e255f0a97cf43939ae2e90ba4673ae9a8bd2f
rust: silence unknown warnings for the sake of old compilers

Occasionally, we may need to silence warnings and clippy lints that
were only introduced in newer Rust compiler versions.  However, this
would fail when compiling with an older rustc:

error: unknown lint: `non_local_definitions`
   --> rust/qemu-api/rust-qemu-api-tests.p/structured/offset_of.rs:79:17

So by default we need to block the unknown_lints warning.  To avoid
misspelled lints or other similar issues, re-enable it in the CI job
that uses nightly rust.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
.gitlab-ci.d/buildtest.yml
meson.build
meson_options.txt
scripts/meson-buildoptions.sh