about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-11-15 18:53:04 +0000
committerbors <bors@rust-lang.org>2023-11-15 18:53:04 +0000
commit6b771f6b5a6c8b03b6322a9c77ac77cb346148f0 (patch)
treecc252bd34eb9775736b7a67b395c73a29ee40a5b /compiler/rustc_query_impl/src
parent0b244796388a929affbea546f1c886dc2e482898 (diff)
parentcaae1e08ecfa67f5ab3ccf8b7edf20c252c2268a (diff)
downloadrust-6b771f6b5a6c8b03b6322a9c77ac77cb346148f0.tar.gz
rust-6b771f6b5a6c8b03b6322a9c77ac77cb346148f0.zip
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`
Diffstat (limited to 'compiler/rustc_query_impl/src')
0 files changed, 0 insertions, 0 deletions