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>2022-03-15 03:56:33 +0000
committerbors <bors@rust-lang.org>2022-03-15 03:56:33 +0000
commita918d8b55bd7ec9bbec0c01c1362e842342d7729 (patch)
tree344d4d73c9e9be6631956f25ce229216d19b33df /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent6a2dae6d25bb84b56842e0423836210d81a6c402 (diff)
parent003eaf8fe270cb8f6915ed03ad23f4af0212d607 (diff)
downloadrust-a918d8b55bd7ec9bbec0c01c1362e842342d7729.tar.gz
rust-a918d8b55bd7ec9bbec0c01c1362e842342d7729.zip
Auto merge of #94584 - pnkfelix:inject-use-suggestion-sites, r=ekuber
More robust fallback for `use` suggestion

Our old way to suggest where to add `use`s would first look for pre-existing `use`s in the relevant crate/module, and if there are *no* uses, it would fallback on trying to use another item as the basis for the suggestion.

But this was fragile, as illustrated in issue #87613

This PR instead identifies span of the first token after any inner attributes, and uses *that* as the fallback for the `use` suggestion.

Fix #87613
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions