diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-04-05 14:18:17 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-06-03 22:42:18 +0200 |
| commit | 2409089b87692700deb38fc0b8ac94e31b70ffc3 (patch) | |
| tree | 125941fb8c51dc6883254d70904ab645b53535bc /scripts/rust/rustc_args.py | |
| parent | 18c9f4a1729db1389218983379f6d62a9e550754 (diff) | |
| download | focaccia-qemu-2409089b87692700deb38fc0b8ac94e31b70ffc3.tar.gz focaccia-qemu-2409089b87692700deb38fc0b8ac94e31b70ffc3.zip | |
rust: use native Meson support for clippy and rustdoc
Meson has support for invoking clippy and rustdoc on all crates (1.7.0 for clippy, 1.8.0 for rustdoc). Use it instead of the homegrown version; this requires disabling the multiple_crate_versions lint (the only one that was enabled from the "cargo" group)---which was not particularly useful anyway because all dependencies are converted by hand into Meson subprojects. rustfmt is still not supported. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/rust/rustc_args.py')
| -rw-r--r-- | scripts/rust/rustc_args.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/rust/rustc_args.py b/scripts/rust/rustc_args.py index 2633157df2..63b0748e0d 100644 --- a/scripts/rust/rustc_args.py +++ b/scripts/rust/rustc_args.py @@ -104,10 +104,7 @@ def generate_lint_flags(cargo_toml: CargoTOML, strict_lints: bool) -> Iterable[s else: raise Exception(f"invalid level {level} for {prefix}{lint}") - # This may change if QEMU ever invokes clippy-driver or rustdoc by - # hand. For now, check the syntax but do not add non-rustc lints to - # the command line. - if k == "rust" and not (strict_lints and lint in STRICT_LINTS): + if not (strict_lints and lint in STRICT_LINTS): lint_list.append(LintFlag(flags=[flag, prefix + lint], priority=priority)) if strict_lints: |