]> git.ipfire.org Git - thirdparty/qemu.git/commit
rust: add --check-cfg test to rustc arguments
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Jan 2025 15:52:25 +0000 (16:52 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 Jan 2025 22:34:41 +0000 (23:34 +0100)
commit1d03e9771e05685e11bbd3cc8cdd072c02cf580d
treefd0059f9bc517dde6ecc9248870ff6b730ed5455
parent122748c83d2a331b43ea17efd78c4117a362f3f2
rust: add --check-cfg test to rustc arguments

rustc will check that every reachable #[cfg] matches a list of
the expected config names and values.  Recent versions of rustc are
also complaining about #[cfg(test)], even if it is basically a standard
part of the language.  So, always allow it.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/rust/rustc_args.py