about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-04-15 23:51:22 +0200
committerSamuel Tardieu <sam@rfc1149.net>2025-05-05 23:19:59 +0200
commit4de5b2757df953e4f0198aca3cf89c720e6bcbdf (patch)
tree8cce2d8c2a6de966e76578aa7ea2a132c8926a0b /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent9663da39d2aee8ae68d06de75ae122ea27d88281 (diff)
downloadrust-4de5b2757df953e4f0198aca3cf89c720e6bcbdf.tar.gz
rust-4de5b2757df953e4f0198aca3cf89c720e6bcbdf.zip
`empty_struct_with_brackets`: do not lint macro code
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions