about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorStefano Buliani <stefano.buliani@gmail.com>2021-09-04 11:47:52 -0700
committerStefano Buliani <stefano.buliani@gmail.com>2021-09-04 11:47:52 -0700
commit82f1f50335e114071fea6f5b873871b66e9c4372 (patch)
tree421e5799719f2d44800a5f7733d127616bf886f3 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent226e181b80fa0be755872b66916ef7e704601ec2 (diff)
downloadrust-82f1f50335e114071fea6f5b873871b66e9c4372.tar.gz
rust-82f1f50335e114071fea6f5b873871b66e9c4372.zip
Skip single use lifetime lint for generated opaque types
As reported in issue #77175, the opaque type generated by the desugaring process of an async function uses the lifetimes defined by the originating function. The definition ID for the lifetimes in the opaque method is different from the one in the originating async function and it could therefore be considered a single use of the lifetimne, this causes the single_use_lifetimes lint to fail compilation if explicitly denied. This fix skips the lint for lifetimes used only once in generated opaque types for an async function that are declared in the parent async function definition.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions