Re: [PATCH] rust: add --check-cfg test to rustc arguments

2025-01-17 Thread Paolo Bonzini
On Fri, Jan 17, 2025 at 5:01 PM Alex Bennée wrote: > > Paolo Bonzini writes: > > > 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 > >

Re: [PATCH] rust: add --check-cfg test to rustc arguments

2025-01-17 Thread Alex Bennée
Paolo Bonzini writes: > 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. Hmm this breaks the

Re: [PATCH] rust: add --check-cfg test to rustc arguments

2025-01-07 Thread Paolo Bonzini
Il mar 7 gen 2025, 16:54 Paolo Bonzini ha scritto: > 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 a

[PATCH] rust: add --check-cfg test to rustc arguments

2025-01-07 Thread Paolo Bonzini
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 --- scripts/rust/rus