diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-11-17 08:40:22 +0100 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2024-12-19 09:25:20 -0800 |
commit | 1f1a6d3a45ab968bbc28854c4733dc1303abb176 (patch) | |
tree | c83237c34f1984f248671896162875e48a91573a /docs | |
parent | 5768ccba6eb77167da96712c20a4e042efb31d03 (diff) | |
download | meson-1f1a6d3a45ab968bbc28854c4733dc1303abb176.zip meson-1f1a6d3a45ab968bbc28854c4733dc1303abb176.tar.gz meson-1f1a6d3a45ab968bbc28854c4733dc1303abb176.tar.bz2 |
rust: raise a warning if clippy is used instead of rustc
clippy-driver is not meant to be a general-purpose compiler front-end.
Since Meson can now provide natively the ability to invoke clippy,
raise a warning if someone uses it that way.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/markdown/snippets/clippy.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/markdown/snippets/clippy.md b/docs/markdown/snippets/clippy.md index 14bcc77..47d0208 100644 --- a/docs/markdown/snippets/clippy.md +++ b/docs/markdown/snippets/clippy.md @@ -3,3 +3,6 @@ Meson now defines a `clippy` target if the project uses the Rust programming language. The target runs clippy on all Rust sources, using the `clippy-driver` program from the same Rust toolchain as the `rustc` compiler. + +Using `clippy-driver` as the Rust compiler will now emit a warning, as it +is not meant to be a general-purpose compiler front-end. |