rust/compiler/rustc_trait_selection/src
bors 6b771f6b5a Auto merge of #117878 - gavinleroy:proper-depth-check, r=lcnr
Fix depth check in ProofTreeVisitor.

The hack to cutoff overflows and cycles in the new trait solver was incorrect. We want to inspect everything with depth [0..10].

This fix exposed a previously unseen bug, which caused the compiler to ICE when invoking `trait_ref` on a non-assoc type projection. I simply added the guard in the `AmbiguityCausesVisitor`, and updated the expected output for the `auto-trait-coherence` test which now includes the extra note:
```text
   |
   = note: upstream crates may add a new impl of trait `std::marker::Send` for type `OpaqueType` in future versions
```

r? `@lcnr`
2023-11-15 18:53:04 +00:00
..
solve Auto merge of #117878 - gavinleroy:proper-depth-check, r=lcnr 2023-11-15 18:53:04 +00:00
traits Auto merge of #117878 - gavinleroy:proper-depth-check, r=lcnr 2023-11-15 18:53:04 +00: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 Remove #![feature(result_option_inspect)] from the compiler 2023-10-18 07:35:57 +08:00