mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
b095247ab6
Don't linting `as_conversions` in proc macros Don't linting `as_conversions` if code was generated by procedural macro. This PR fixes https://github.com/rust-lang/rust-clippy/issues/9657 I implemented the fix changing the lint code to be a `LateLintPass` in order to be able to use the `is_from_proc_macro` out of the box. If the reviwer thinks that it would be better to do the other way (implementing `WithSearchPat`) just let me know. I might need some help in implementing it for the `ustc_ast::ast::Expr` changelog: [`as_conversions`] avoiding warnings in macro-generated code |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |