about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-12 12:28:36 +0000
committerbors <bors@rust-lang.org>2023-06-12 12:28:36 +0000
commitb095247ab637194fbf6d271fc6a55552572dea2d (patch)
tree99c6d16b1cc15e9d33a2658463065e6ad46749a6 /compiler/rustc_llvm/llvm-wrapper
parentebafbfcf354433055f58368bbf5e1a6bb298f874 (diff)
parent55c9100334ceeccecc75fbdfc5bef321404bc066 (diff)
downloadrust-b095247ab637194fbf6d271fc6a55552572dea2d.tar.gz
rust-b095247ab637194fbf6d271fc6a55552572dea2d.zip
Auto merge of #10911 - lochetti:fix_9657, r=Alexendoo
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
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
0 files changed, 0 insertions, 0 deletions