qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PULL 02/38] rust: add --check-cfg test to rustc arguments


From: Paolo Bonzini
Subject: Re: [PULL 02/38] rust: add --check-cfg test to rustc arguments
Date: Sun, 12 Jan 2025 13:15:06 +0100
User-agent: Mozilla Thunderbird

On 1/10/25 22:31, Kevin Wolf wrote:
Am 10.01.2025 um 19:45 hat Paolo Bonzini geschrieben:
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>

error: invalid `--check-cfg` argument: `test`
   |
   = note: expected `cfg(name, values("value1", "value2", ... "valueN"))`
   = note: visit <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for 
more details

Ouch. :/ That's even in the GitLab pipeline...

I fixed the branch for now and will send the v2 pull request for the record tomorrow.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]