about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorTimo <30553356+y21@users.noreply.github.com>2025-05-17 10:43:54 +0000
committerGitHub <noreply@github.com>2025-05-17 10:43:54 +0000
commitda7b678992dd65dbd644bfe30ba61a9a0d2c695c (patch)
treec96bbfc1b21730ce029e2c8d49e915cb5292a3b1 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parentdaeb6a1d180b040ed4f61485cc1294859a287f88 (diff)
parent4de5b2757df953e4f0198aca3cf89c720e6bcbdf (diff)
downloadrust-da7b678992dd65dbd644bfe30ba61a9a0d2c695c.tar.gz
rust-da7b678992dd65dbd644bfe30ba61a9a0d2c695c.zip
`empty_struct_with_brackets`: do not lint code coming from macro expansion (#14623)
Do not attempt to fetch a snippet from expansion. Without this change,
the inside of macros could[*] be shown as the source of the problem.

[*] Due to the way the source code is processed and reparsed in this
macro, the declarative macro has to be located outside the current
source file for the bug to appear. Otherwise, the macro call itself will
be (mis)identified as a potential `struct` field definition and the lint
will not trigger.

changelog: [`empty_struct_with_brackets`]: do not lint code coming from
macro expansion
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions