1
Fork 0
rust/compiler/rustc_trait_selection/src
Matthias Krüger 5459333ffc
Rollup merge of #117241 - compiler-errors:auto-trait-leak-cycle, r=oli-obk
Stash and cancel cycle errors for auto trait leakage in opaques

We don't need to emit a traditional cycle error when we have a selection error that explains what's going on but in more detail.

We may want to augment this error to actually point out the cycle, now that the cycle error is not being emitted. We could do that by storing the set of opaques that was in the `CyclePlaceholder` that gets returned from `type_of_opaque`.

r? `@oli-obk` cc `@estebank` #117235
2023-10-27 11:48:06 +02:00
..
solve Auto merge of #112875 - compiler-errors:negative-coherence-rework, r=lcnr 2023-10-26 10:57:21 +00:00
traits Rollup merge of #117241 - compiler-errors:auto-trait-leak-cycle, r=oli-obk 2023-10-27 11:48:06 +02:00
errors.rs Migrate a trait selection error to use diagnostic translation 2023-08-07 05:26:38 +00:00
infer.rs Remove constness from TraitPredicate 2023-08-02 15:38:00 +00:00
lib.rs rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00