





















Today, we're announcing that Clippy will completely remove its plugin interface. Using the plugin interface has been deprecated for about one and a half year now (rust-lang/rust-clippy#2712). Since then, an unsilenceable warning has been emitted. Now that compiler plugins are officially deprecated (rust-lang/rust#64675), Clippy will remove its support for the plugin interface completely (rust-lang/rust-clippy#4714). This change will hit stable with version 1.41.0.
Most likely, no. This post only affects you, if you're still using Clippy through its plugin interface. If you do so, you get the warning
warning: the clippy plugin is being deprecated, please use cargo clippy or rls with the clippy feature
when compiling your crate. If you don't see this warning, nothing will change for you.
If you are still using the Clippy plugin interface, here are some steps you can
take to migrate to cargo clippy.
Cargo.toml: Remove every occurrence of the clippy dependency and the
clippy feature.feature(plugin) and plugin(clippy).feature = "clippy" with feature = "cargo-clippy". The cargo-clippy feature is automatically enabled when
running cargo clippy.rustup component add clippy. Once installed, you can run cargo clippy (for more usage
instructions, see the Clippy README). Note that Clippy is not included in
every nightly, but you can check its availability on the rustup components
history page.If you need help with migrating from the plugin interface, you can contact us via Discord or open an issue on GitHub.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。