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
..
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00