about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-19 13:54:06 +0000
committerbors <bors@rust-lang.org>2024-01-19 13:54:06 +0000
commit989ce17b5564ca5414da234df6aa4b247f946c91 (patch)
tree68cb9f7bdb39ea162df41d8169c704c3d05ed3a1 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent6fd0258e45105161b7e759a22e7350958e5cb0b1 (diff)
parent73d7ce6abf877f22c7355b3b203e1587e58741bd (diff)
downloadrust-989ce17b5564ca5414da234df6aa4b247f946c91.tar.gz
rust-989ce17b5564ca5414da234df6aa4b247f946c91.zip
Auto merge of #12125 - cocodery:issue12045, r=xFrednet
Fix error warning span for issue12045

fixes [Issue#12045](https://github.com/rust-lang/rust-clippy/issues/12045)

In issue#12045, unexpected warning span occurs on attribute `#[derive(typed_builder::TypedBuilder)]`, actually the warning should underline `_lifetime`.

In the source code we can find that the original intend is to warning on `ident.span`, but in this case, `stmt.span` is unequal with `ident.span`. So, fix the nit here is fine.

Besides, `ident.span` have an accurate range than `stmt.span`.

changelog: [`no_effect_underscore_binding`]: correct warning span
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions