diff options
| author | bors <bors@rust-lang.org> | 2024-03-07 13:56:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-03-07 13:56:36 +0000 |
| commit | ba80e06537f7c07da33dacdc8efa87c2ea32b6c5 (patch) | |
| tree | e204b9305a8b5bd6e1e7f2d873e2464a4f371a9d /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | a79db2aa5173edcda81c7e571bd21d4097e8eb73 (diff) | |
| parent | ac643a278bdfd408519da6f092e64a6a839db314 (diff) | |
| download | rust-ba80e06537f7c07da33dacdc8efa87c2ea32b6c5.tar.gz rust-ba80e06537f7c07da33dacdc8efa87c2ea32b6c5.zip | |
Auto merge of #12429 - Alexendoo:redundant-field-names-macro-ctxt, r=Manishearth
Don't lint `redundant_field_names` across macro boundaries
Fixes #12426
The `field.span.eq_ctxt(field.ident.span)` addition is the relevant line for the bugfix
The current implementation checks that the field's name and the path are in the same context by comparing the idents, but not that the two are in the same context as the entire field itself, so in local macros `SomeStruct { $ident: $ident }` would get linted
changelog: none
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
