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>2024-09-16 18:34:01 +0200
committerGitHub <noreply@github.com>2024-09-16 18:34:01 +0200
commit4e68d06b52b59cace81fe6ec293e1d644c6a683c (patch)
tree87f9e540f3b65847126c749df64a9caea7746250 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent9a1004c259dddb2ba70c92db38a02e6518146334 (diff)
parent1e9fa7eb79072274fbd741f09e9444249e1d4ff0 (diff)
downloadrust-4e68d06b52b59cace81fe6ec293e1d644c6a683c.tar.gz
rust-4e68d06b52b59cace81fe6ec293e1d644c6a683c.zip
Rollup merge of #130412 - compiler-errors:rpitit-overcapture, r=jieyouxu
Don't ICE when RPITIT captures more method args than trait definition

Make sure we don't ICE when an RPITIT captures more method args than the trait definition, which is not allowed. This was because we were using the wrong def id for error reporting.

Due to the default lifetime capture rules of RPITITs (capturing everything in scope), this is only doable if we use precise capturing, which isn't currently allowed for RPITITs anyways but we still end up reaching the relevant codepaths.

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