rust/tests/ui/impl-trait/precise-capturing
Jubilee e31988cfc9
Rollup merge of #132209 - compiler-errors:modifiers, r=fmease
Fix validation when lowering `?` trait bounds

Pass the unlowered (`rustc_hir`) polarity to `lower_poly_trait_ref`.

This allows us to actually *validate* that generic args are actually valid on `?Trait` paths. This actually regressed in #113671 because that PR changed the behavior where we were inadvertently re-lowering paths as `BoundPolarity::Positive`, which was also coincidentally the only place we were enforcing the generics on `?Trait` paths were correct.
2024-10-31 17:50:40 -07: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
apit.stderr
bad-lifetimes.rs
bad-lifetimes.stderr
bad-params.rs
bad-params.stderr
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
capture-parent-arg.stderr
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
duplicated-use.rs
dyn-use.rs
dyn-use.stderr
elided.rs
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
forgot-to-capture-const.stderr
forgot-to-capture-lifetime.rs
forgot-to-capture-lifetime.stderr
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
hidden-type-suggestion.stderr
higher-ranked.rs
illegal-positions.real.stderr
illegal-positions.rs
migration-note.rs Try to point out when edition 2024 lifetime capture rules cause borrowck issues 2024-10-31 01:35:14 +00:00
migration-note.stderr Try to point out when edition 2024 lifetime capture rules cause borrowck issues 2024-10-31 01:35:14 +00:00
ordering.rs
ordering.stderr
outlives.rs
overcaptures-2024-but-fine.rs
overcaptures-2024.fixed
overcaptures-2024.rs
overcaptures-2024.stderr
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
unexpected-token.stderr