about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-11-10 10:09:52 +0100
committerGitHub <noreply@github.com>2024-11-10 10:09:52 +0100
commitc1f3c7078a2b1c2ae10382df751093472f0076a5 (patch)
tree5a73b8242bb430e1668ac5a39553dc8626da0a5a /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent94cc01af159e2c086eeca2c9bf16fd3e60f04f43 (diff)
parenta1f9d5bfbaa967ac91b862894d84e7b27b85d971 (diff)
downloadrust-c1f3c7078a2b1c2ae10382df751093472f0076a5.tar.gz
rust-c1f3c7078a2b1c2ae10382df751093472f0076a5.zip
Rollup merge of #132816 - compiler-errors:2024-apit, r=jieyouxu
Dont suggest `use<impl Trait>` when we have an edition-2024-related borrowck issue

#131186 implements some machinery to detect in borrowck when we may have RPIT overcaptures due to edition 2024, and suggests adding `+ use<'a, T>` to go back to the edition 2021 capture rules. However, we weren't filtering out cases when there are APITs in scope.

This PR implements a more sophisticated diagnostic where we will suggest turning any APITs in scope into type parameters, and applies this to both the borrowck error note, and to the `impl_trait_overcaptures` migration lint.

cc #132809
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions