about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-09-16 14:59:29 +0000
committerbors <bors@rust-lang.org>2024-09-16 14:59:29 +0000
commit3a22be33db27e4f90e95dfaad301af400386efc1 (patch)
tree48e337f4cf001bdf9e0de0a28b24942972b36fe7 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent13b5a4e43b92cf738acad403ea56900947f9d37b (diff)
parentae8b4607c6c92164dce2e92f9496de189a43bc44 (diff)
downloadrust-3a22be33db27e4f90e95dfaad301af400386efc1.tar.gz
rust-3a22be33db27e4f90e95dfaad301af400386efc1.zip
Auto merge of #130414 - compiler-errors:precise-capturing-arg-valid, r=jieyouxu
Do precise capturing arg validation in resolve

Moves the validation of precise capturing args (`use<T, N>`) out of `resolve_bound_vars` and into `rustc_resolve`. This both simplifies the impl and fixes a bug when we have `use<arg>` where `arg` is one of the function args.

This also introduces new error codes specifically for precise capturing, to avoid reusing the other error codes which are not as accurate.

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