diff options
| author | Catherine Flores <catherine.3.flores@gmail.com> | 2025-02-27 19:51:57 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-27 19:51:57 +0000 |
| commit | 15180d4eb9dcff9441a8c3ff3382804123c5b0a1 (patch) | |
| tree | faf003d0fc41cc929cca9ab561f01b850f8ffda8 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 4a9b8c6415c59ef81c023e1f1de01b7bdb3d9675 (diff) | |
| parent | 063d6aef0eb8fe81d83a896400c15c6fe9cf0c34 (diff) | |
| download | rust-15180d4eb9dcff9441a8c3ff3382804123c5b0a1.tar.gz rust-15180d4eb9dcff9441a8c3ff3382804123c5b0a1.zip | |
macro_use_import: Don't check is attribute comes from expansion (#14317)
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 https://github.com/rust-lang/rust-clippy/issues/14303 r? @y21 cc @jdonszelmann changelog: Fix ICE in [`macro_use_import`] lint
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
