You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An idea is to add a switch to Clippy to make it generate a Coccinelle file that fixes a good part of the problems that Clippy has found in a source file.
This sounds like a problem that's already solved by cargo clippy --fix? Or is this doing something else?
If not, I feel like this should either be implemented in rustc, or more realistically, as a separate tool (you can get warnings and suggestions from rustc in a JSON format with --error-format=json).
Clippy warnings and suggestions are no different from rustc's suggestions so if this exists this could trivially also work for rustc warnings and any other linter/tool that uses the compiler APIs for emitting suggestions.
An idea is to add a switch to Clippy to make it generate a Coccinelle file that fixes a good part of the problems that Clippy has found in a source file.
Info about the Coccinelle tool for Rust:
https://gitlab.inria.fr/coccinelle/coccinelleforrust/
https://docs.kernel.org/dev-tools/coccinelle.html
https://lwn.net/SubscriberLink/991399/8bfb2ec24205dbaa/
https://kangrejos.com/2024/Coccinelle%20for%20Rust.pdf
The text was updated successfully, but these errors were encountered: