about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-04-24 06:25:52 +0000
committerbors <bors@rust-lang.org>2023-04-24 06:25:52 +0000
commit5161c4ce4d9af10b66fdb9c4daac81590848f6a1 (patch)
tree94de935d66acb290f05b0c52c96323f68284b852 /tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs
parent96f8471d81a72e74d0791781906426353fe835a6 (diff)
parent628605e07a2a9a546ba698f1a50311b16832f227 (diff)
downloadrust-5161c4ce4d9af10b66fdb9c4daac81590848f6a1.tar.gz
rust-5161c4ce4d9af10b66fdb9c4daac81590848f6a1.zip
Auto merge of #10697 - lochetti:fix_9757, r=dswij
Ignore `shadow` warns in code from macro expansions

This PR fixes https://github.com/rust-lang/rust-clippy/issues/9757

I am in doubt if just looking for `pat.span.from_expansion()` would be sufficient instead of looking for both `pat.span.desugaring_kind().is_some()` or `pat.span.from_expansion()`. The tests (including the new one) passes if I leave the only `if pat.span.from_expansion()`. Any feedbacks?

Also, this is my first PR here, sorry for anything and thanks for the patience!

changelog: [`shadow_same`, `shadow_reuse`, `shadow_unrelated`]: avoiding warns in macro-generated code
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-both-flags.rs')
0 files changed, 0 insertions, 0 deletions