From: Kevin Wolf <kwolf@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [PULL 02/38] rust: add --check-cfg test to rustc arguments
Date: Fri, 10 Jan 2025 22:31:16 +0100 [thread overview]
Message-ID: <Z4GRpOqXOka2f8Up@redhat.com> (raw)
In-Reply-To: <20250110184620.408302-3-pbonzini@redhat.com>
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
> scripts/rust/rustc_args.py | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/scripts/rust/rustc_args.py b/scripts/rust/rustc_args.py
> index 5525b3886fa..d79dc6d81f1 100644
> --- a/scripts/rust/rustc_args.py
> +++ b/scripts/rust/rustc_args.py
> @@ -215,6 +215,8 @@ def main() -> None:
>
> if rustc_version >= (1, 80):
> if args.lints:
> + print("--check-cfg")
> + print("test")
Should this be print("cfg(test)")?
> for cfg in sorted(cargo_toml.check_cfg):
> print("--check-cfg")
> print(cfg)
Kevin
next prev parent reply other threads:[~2025-01-10 21:33 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-10 18:45 [PULL 00/38] Rust, i386 patches for 2024-01-10 Paolo Bonzini
2025-01-10 18:45 ` [PULL 01/38] rust: fix --enable-debug-mutex Paolo Bonzini
2025-01-10 18:45 ` [PULL 02/38] rust: add --check-cfg test to rustc arguments Paolo Bonzini
2025-01-10 21:31 ` Kevin Wolf [this message]
2025-01-12 12:15 ` Paolo Bonzini
2025-01-10 18:45 ` [PULL 03/38] rust: qom: add ParentField Paolo Bonzini
2025-01-10 18:45 ` [PULL 04/38] rust: add a utility module for compile-time type checks Paolo Bonzini
2025-01-10 18:45 ` [PULL 05/38] rust: macros: check that #[derive(Object)] requires #[repr(C)] Paolo Bonzini
2025-01-10 18:45 ` [PULL 06/38] rust: macros: check that the first field of a #[derive(Object)] struct is a ParentField Paolo Bonzini
2025-01-10 18:45 ` [PULL 07/38] rust: qom: automatically use Drop trait to implement instance_finalize Paolo Bonzini
2025-01-10 18:45 ` [PULL 08/38] rust: qom: move device_id to PL011 class side Paolo Bonzini
2025-01-10 18:45 ` [PULL 09/38] rust: pl011: only leave embedded object initialization in instance_init Paolo Bonzini
2025-01-10 18:45 ` [PULL 10/38] rust: qom: make INSTANCE_POST_INIT take a shared reference Paolo Bonzini
2025-01-10 18:45 ` [PULL 11/38] rust: qemu-api-macros: extend error reporting facility to parse errors Paolo Bonzini
2025-01-10 18:45 ` [PULL 12/38] rust: qemu-api-macros: add automatic TryFrom/TryInto derivation Paolo Bonzini
2025-01-10 18:45 ` [PULL 13/38] rust: qdev: expose inherited methods to subclasses of SysBusDevice Paolo Bonzini
2025-01-10 18:45 ` [PULL 14/38] rust: hide warnings for subprojects Paolo Bonzini
2025-01-10 18:45 ` [PULL 15/38] qom: remove unused field Paolo Bonzini
2025-01-10 18:45 ` [PULL 16/38] make-release: only leave tarball of wrap-file subprojects Paolo Bonzini
2025-01-10 18:45 ` [PULL 17/38] target/i386: improve code generation for BT Paolo Bonzini
2025-01-10 18:45 ` [PULL 18/38] target/i386: use shr to load high-byte registers into T0/T1 Paolo Bonzini
2025-01-10 18:46 ` [PULL 19/38] i386/cpu: Mark avx10_version filtered when prefix is NULL Paolo Bonzini
2025-01-10 18:46 ` [PULL 20/38] target/i386/kvm: Add feature bit definitions for KVM CPUID Paolo Bonzini
2025-01-10 18:46 ` [PULL 21/38] target/i386/kvm: Remove local MSR_KVM_WALL_CLOCK and MSR_KVM_SYSTEM_TIME definitions Paolo Bonzini
2025-01-10 18:46 ` [PULL 22/38] target/i386/kvm: Only save/load kvmclock MSRs when kvmclock enabled Paolo Bonzini
2025-01-10 18:46 ` [PULL 23/38] target/i386/kvm: Drop workaround for KVM_X86_DISABLE_EXITS_HTL typo Paolo Bonzini
2025-01-10 18:46 ` [PULL 24/38] target/i386/confidential-guest: Fix comment of x86_confidential_guest_kvm_type() Paolo Bonzini
2025-01-10 18:46 ` [PULL 25/38] target/i386/kvm: Clean up return values of MSR filter related functions Paolo Bonzini
2025-01-10 18:46 ` [PULL 26/38] target/i386/kvm: Return -1 when kvm_msr_energy_thread_init() fails Paolo Bonzini
2025-01-10 18:46 ` [PULL 27/38] target/i386/kvm: Clean up error handling in kvm_arch_init() Paolo Bonzini
2025-01-10 18:46 ` [PULL 28/38] target/i386/kvm: Replace ARRAY_SIZE(msr_handlers) with KVM_MSR_FILTER_MAX_RANGES Paolo Bonzini
2025-01-10 18:46 ` [PULL 29/38] i386/cpu: Extract a common fucntion to setup value of MSR_CORE_THREAD_COUNT Paolo Bonzini
2025-01-10 18:46 ` [PULL 30/38] i386/cpu: Drop the variable smp_cores and smp_threads in x86_cpu_pre_plug() Paolo Bonzini
2025-01-10 18:46 ` [PULL 31/38] i386/cpu: Drop cores_per_pkg in cpu_x86_cpuid() Paolo Bonzini
2025-01-10 18:46 ` [PULL 32/38] i386/topology: Update the comment of x86_apicid_from_topo_ids() Paolo Bonzini
2025-01-10 18:46 ` [PULL 33/38] i386/topology: Introduce helpers for various topology info of different level Paolo Bonzini
2025-01-10 18:46 ` [PULL 34/38] i386/cpu: Track a X86CPUTopoInfo directly in CPUX86State Paolo Bonzini
2025-01-10 18:46 ` [PULL 35/38] i386/cpu: Hoist check of CPUID_EXT3_TOPOEXT against threads_per_core Paolo Bonzini
2025-01-10 18:46 ` [PULL 36/38] cpu: Remove nr_cores from struct CPUState Paolo Bonzini
2025-01-10 18:46 ` [PULL 37/38] i386/cpu: Set up CPUID_HT in x86_cpu_expand_features() instead of cpu_x86_cpuid() Paolo Bonzini
2025-01-10 18:46 ` [PULL 38/38] i386/cpu: Set and track CPUID_EXT3_CMP_LEG in env->features[FEAT_8000_0001_ECX] Paolo Bonzini
-- strict thread matches above, loose matches on Subject: below --
2025-01-17 8:52 [PULL v2 00/38] Rust, i386 patches for 2024-01-10 Paolo Bonzini
2025-01-17 8:52 ` [PULL 02/38] rust: add --check-cfg test to rustc arguments Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z4GRpOqXOka2f8Up@redhat.com \
--to=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.