about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-07-18 19:06:02 +0200
committerGitHub <noreply@github.com>2023-07-18 19:06:02 +0200
commit931d9f099a017f625f9d6a6d2a9cc865f61b0f10 (patch)
treea5768f0dbe2e2eff45ebbdf3b4cb9e67e110e63f /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent8d361cbd91d827d703d2da46af8d89190ca1cb6a (diff)
parent33bd453f3521ea3cfb67602eada912948b7aeb81 (diff)
downloadrust-931d9f099a017f625f9d6a6d2a9cc865f61b0f10.tar.gz
rust-931d9f099a017f625f9d6a6d2a9cc865f61b0f10.zip
Rollup merge of #113811 - jieyouxu:fix-unused-qualifications-suggestion, r=oli-obk
Fix removal span calculation of `unused_qualifications` suggestion

Given a path such as `std::ops::Index<str>`, calculate the unnecessary qualification removal span by computing the beginning of the entire span until the ident span of the last path segment, which handles generic arguments and lifetime arguments in the last path segment. Previous logic only kept the ident span of the last path segment which is incorrect.

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