rust/tests
bors 5161c4ce4d 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
2023-04-24 06:25:52 +00:00
..
test_utils
ui Auto merge of #10697 - lochetti:fix_9757, r=dswij 2023-04-24 06:25:52 +00:00
ui-cargo Update to a compiletest-rs version that requires //@ for commands 2023-04-20 14:44:03 +00:00
ui-internal Update to a compiletest-rs version that requires //@ for commands 2023-04-20 14:44:03 +00:00
ui-toml Update to a compiletest-rs version that requires //@ for commands 2023-04-20 14:44:03 +00:00
workspace_test
check-fmt.rs
clippy.toml
compile-test.rs Update to a compiletest-rs version that requires //@ for commands 2023-04-20 14:44:03 +00:00
dogfood.rs Fix dogfood test 2023-04-23 03:44:24 -07:00
integration.rs
lint_message_convention.rs
missing-test-files.rs
versioncheck.rs
workspace.rs