diff options
| author | Philipp Krones <hello@philkrones.com> | 2025-02-27 20:36:19 +0100 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2025-02-27 20:42:56 +0100 |
| commit | 063d6aef0eb8fe81d83a896400c15c6fe9cf0c34 (patch) | |
| tree | faf003d0fc41cc929cca9ab561f01b850f8ffda8 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 4a9b8c6415c59ef81c023e1f1de01b7bdb3d9675 (diff) | |
| download | rust-063d6aef0eb8fe81d83a896400c15c6fe9cf0c34.tar.gz rust-063d6aef0eb8fe81d83a896400c15c6fe9cf0c34.zip | |
macro_use_import: Don't check is attribute comes from expansion
It is not possible to write a declarative macro, that produces an attribute w/o an item attached to it. This means that the `check_item` will already insert the span in the map, if it came from an expansion. So additionally checking if the macro came from an expansion doesn't add anything here. So the `check_attribute` function, and with that the problematic `attr.span()` call can be completely removed. Fixes #14303
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
