about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-03-07 13:56:36 +0000
committerbors <bors@rust-lang.org>2024-03-07 13:56:36 +0000
commitba80e06537f7c07da33dacdc8efa87c2ea32b6c5 (patch)
treee204b9305a8b5bd6e1e7f2d873e2464a4f371a9d /compiler/rustc_codegen_llvm/src/errors.rs
parenta79db2aa5173edcda81c7e571bd21d4097e8eb73 (diff)
parentac643a278bdfd408519da6f092e64a6a839db314 (diff)
downloadrust-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