rust/tests/ui/impl-trait/precise-capturing
Matthias Krüger 213803549a
Rollup merge of #132817 - compiler-errors:impl-trait-overcaptures-apit, r=BoxyUwU
Recurse into APITs in `impl_trait_overcaptures`

We were previously not detecting cases where an RPIT was located in the return type of an async function, leading to underfiring of the `impl_trait_overcaptures`. This PR does this recursion properly now.

cc https://github.com/rust-lang/rust/issues/132809
2024-11-15 19:05:15 +01:00
..
auxiliary Try to point out when edition 2024 lifetime capture rules cause borrowck issues 2024-10-31 01:35:14 +00:00
apit.rs Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
apit.stderr Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
bad-lifetimes.rs Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
bad-lifetimes.stderr Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
bad-params.rs Do precise capturing arg validation in resolve 2024-09-16 10:56:22 -04:00
bad-params.stderr Introduce distinct error codes for precise capturing 2024-09-16 10:56:22 -04:00
bound-modifiers.rs Actually do validation for poly trait refs with ? modifier 2024-10-30 23:42:50 +00:00
bound-modifiers.stderr Actually do validation for poly trait refs with ? modifier 2024-10-30 23:42:50 +00:00
capture-parent-arg.rs Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
capture-parent-arg.stderr Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
capturing-implicit.rs Make sure that outer opaques capture inner opaques's lifetimes even with precise capturing syntax 2024-10-19 18:02:26 +00:00
capturing-implicit.stderr Make sure that outer opaques capture inner opaques's lifetimes even with precise capturing syntax 2024-10-19 18:02:26 +00:00
duplicated-use.real.stderr Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
duplicated-use.rs Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
dyn-use.rs Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
dyn-use.stderr Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
elided.rs Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
foreign-2021.rs Try to point out when edition 2024 lifetime capture rules cause borrowck issues 2024-10-31 01:35:14 +00:00
foreign-2021.stderr Try to point out when edition 2024 lifetime capture rules cause borrowck issues 2024-10-31 01:35:14 +00:00
forgot-to-capture-const.rs Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
forgot-to-capture-const.stderr Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
forgot-to-capture-lifetime.rs Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
forgot-to-capture-lifetime.stderr Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
forgot-to-capture-type.rs Add variances to RPITITs 2024-10-10 11:46:48 -07:00
forgot-to-capture-type.stderr Add variances to RPITITs 2024-10-10 11:46:48 -07:00
hidden-type-suggestion.rs Bless test fallout 2024-08-17 12:43:25 -04:00
hidden-type-suggestion.stderr Bless test fallout 2024-08-17 12:43:25 -04:00
higher-ranked.rs Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
illegal-positions.real.stderr Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
illegal-positions.rs Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
migration-note.rs Dont suggest use<APIT> 2024-11-09 19:41:53 +00:00
migration-note.stderr Dont suggest use<APIT> 2024-11-09 19:41:53 +00:00
ordering.rs Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
ordering.stderr Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
outlives.rs Stabilize opaque type precise capturing 2024-08-17 12:33:29 -04:00
overcaptures-2024-but-fine.rs Don't worry about uncaptured contravariant lifetimes if they outlive a captured lifetime 2024-09-05 06:34:42 -04:00
overcaptures-2024-machine-applicable.fixed Make precise capturing suggestion machine-applicable only if it has not APITs 2024-11-12 04:08:34 +00:00
overcaptures-2024-machine-applicable.rs Make precise capturing suggestion machine-applicable only if it has not APITs 2024-11-12 04:08:34 +00:00
overcaptures-2024-machine-applicable.stderr Make precise capturing suggestion machine-applicable only if it has not APITs 2024-11-12 04:08:34 +00:00
overcaptures-2024.fixed Recurse into APITs in impl_trait_overcaptures 2024-11-11 20:53:08 +00:00
overcaptures-2024.rs Recurse into APITs in impl_trait_overcaptures 2024-11-11 20:53:08 +00:00
overcaptures-2024.stderr Recurse into APITs in impl_trait_overcaptures 2024-11-11 20:53:08 +00:00
redundant.rs Add variances to RPITITs 2024-10-10 11:46:48 -07:00
redundant.stderr Add variances to RPITITs 2024-10-10 11:46:48 -07:00
rpitit-captures-more-method-lifetimes.rs Add variances to RPITITs 2024-10-10 11:46:48 -07:00
rpitit-captures-more-method-lifetimes.stderr Add variances to RPITITs 2024-10-10 11:46:48 -07:00
rpitit-impl-captures-too-much.rs Add variances to RPITITs 2024-10-10 11:46:48 -07:00
rpitit-impl-captures-too-much.stderr Add variances to RPITITs 2024-10-10 11:46:48 -07:00
rpitit.rs Add variances to RPITITs 2024-10-10 11:46:48 -07:00
rpitit.stderr Clarify implicit captures for RPITIT 2024-10-10 11:46:51 -07:00
self-capture.rs Add variances to RPITITs 2024-10-10 11:46:48 -07:00
unexpected-token.rs Rework precise capturing syntax 2024-06-17 22:35:25 -04:00
unexpected-token.stderr Rework precise capturing syntax 2024-06-17 22:35:25 -04:00