rust/tests/ui/impl-trait/precise-capturing
dianne ac922245f0 best_blame_constraint: don't filter constraints by sup SCC
The SCCs of the region graph are not a reliable heuristic to use for blaming an interesting
constraint for diagnostics. For region errors, if the outlived region is `'static`, or the involved
types are invariant in their lifetiems, there will be cycles in the constraint graph containing both
the target region and the most interesting constraints to blame. To get better diagnostics in these
cases, this commit removes that heuristic.
2025-01-06 16:08:29 -08:00
..
auxiliary Update tests to use new proc-macro header 2024-11-27 07:18:25 -08: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 Gate async fn trait bound modifier on async_trait_bounds 2024-12-02 16:50:44 +00:00
bound-modifiers.stderr Gate async fn trait bound modifier on async_trait_bounds 2024-12-02 16:50:44 +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 Stabilize the 2024 edition 2024-11-22 11:12:15 -08:00
capturing-implicit.stderr Stabilize the 2024 edition 2024-11-22 11:12:15 -08: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
external-macro.rs Update tests to use new proc-macro header 2024-11-27 07:18:25 -08: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 Stabilize the 2024 edition 2024-11-22 11:12:15 -08: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 best_blame_constraint: don't filter constraints by sup SCC 2025-01-06 16:08:29 -08:00
migration-note.stderr best_blame_constraint: don't filter constraints by sup SCC 2025-01-06 16:08:29 -08: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 Rudimentary heuristic to insert parentheses when needed for RPIT overcaptures lint 2024-12-10 20:42:47 +00:00
overcaptures-2024.rs Rudimentary heuristic to insert parentheses when needed for RPIT overcaptures lint 2024-12-10 20:42:47 +00:00
overcaptures-2024.stderr Rudimentary heuristic to insert parentheses when needed for RPIT overcaptures lint 2024-12-10 20:42:47 +00:00
redundant.rs Stabilize the 2024 edition 2024-11-22 11:12:15 -08: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 Actually use placeholder regions for trait method late bound regions in collect_return_position_impl_trait_in_trait_tys 2024-11-24 23:11:49 +00: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