rust/tests/ui/async-await/in-trait
Matthias Krüger 96074bec97
Rollup merge of #117133 - compiler-errors:coherence-constrained, r=oli-obk
Merge `impl_wf_inference` (`check_mod_impl_wf`) check into coherence checking

Problem here is that we call `collect_impl_trait_in_trait_types` when checking `check_mod_impl_wf` which is performed before coherence. Due to the `tcx.sess.track_errors`, since we end up reporting an error, we never actually proceed to coherence checking, where we would be emitting a more useful impl overlap error.

This change means that we may report more errors in some cases, but can at least proceed far enough to leave a useful message for overlapping traits with RPITITs in them.

Fixes #116982

r? types
2023-10-25 17:40:29 +02:00
..
auxiliary Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
async-associated-types.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
async-default-fn-overridden.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
async-example-desugared-boxed-in-trait.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
async-example-desugared-boxed-in-trait.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
async-example-desugared-boxed.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
async-example-desugared-boxed.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
async-example-desugared-extra.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
async-example-desugared-in-trait.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
async-example-desugared-manual.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
async-example-desugared-manual.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
async-example-desugared.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
async-example.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
async-generics-and-bounds.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
async-generics-and-bounds.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
async-generics.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
async-generics.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
async-lifetimes-and-bounds.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
async-lifetimes.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
async-recursive-generic.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
async-recursive-generic.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
async-recursive.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
async-recursive.stderr Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
bad-signatures.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
bad-signatures.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
coherence-constrained.rs Merge impl_wf_inference into coherence checking 2023-10-24 17:01:25 +00:00
coherence-constrained.stderr Merge impl_wf_inference into coherence checking 2023-10-24 17:01:25 +00:00
dont-project-to-specializable-projection.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
dont-project-to-specializable-projection.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
early-bound-1.rs Remove incomplete features from RPITIT/AFIT tests 2023-10-24 15:27:06 +00:00
early-bound-2.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
fn-not-async-err2.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
fn-not-async-err.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
fn-not-async-err.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
generics-mismatch.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
generics-mismatch.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
implied-bounds.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
indirect-recursion-issue-112047.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
indirect-recursion-issue-112047.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
issue-102138.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
issue-102219.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
issue-102310.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
issue-104678.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
lifetime-mismatch.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
lifetime-mismatch.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
missing-feature-flag.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
missing-feature-flag.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
missing-send-bound.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
missing-send-bound.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
nested-rpit.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
normalize-opaque-with-bound-vars.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
object-safety.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
object-safety.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
return-not-existing-pair.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
return-not-existing-pair.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
return-not-existing-type-wrapping-rpitit.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
return-not-existing-type-wrapping-rpitit.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
return-type-suggestion.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
return-type-suggestion.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
send-on-async-fn-in-trait.fixed Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
send-on-async-fn-in-trait.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
send-on-async-fn-in-trait.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
send-on-foreign-async-fn-in-trait.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
send-on-foreign-async-fn-in-trait.stderr Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
unconstrained-impl-region.rs Don't ICE when encountering unresolved regions in fully_resolve 2023-10-18 20:39:29 +00:00
unconstrained-impl-region.stderr Don't ICE when encountering unresolved regions in fully_resolve 2023-10-18 20:39:29 +00:00
warn.rs Stabilize AFIT and RPITIT 2023-10-13 21:01:36 +00:00
warn.stderr Rollup merge of #116704 - compiler-errors:afit-lint-plus, r=tmandry 2023-10-14 13:36:29 +02:00