File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
compiler/rustc_type_ir/src/search_graph
tests/ui/traits/next-solver/cycles Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,16 @@ impl<X: Cx> SearchTree<X> {
144
144
NodeKind :: CycleOnStack { entry_node_id : _, result : prev } ,
145
145
NodeKind :: CycleOnStack { entry_node_id : _, result : new } ,
146
146
) => prev == new,
147
- _ => false ,
147
+ ( & NodeKind :: ProvisionalCacheHit { entry_node_id } , _) => {
148
+ self . result_matches ( entry_node_id, new)
149
+ }
150
+ ( _, & NodeKind :: ProvisionalCacheHit { entry_node_id } ) => {
151
+ self . result_matches ( prev, entry_node_id)
152
+ }
153
+ result_matches => {
154
+ tracing:: debug!( ?result_matches) ;
155
+ false
156
+ }
148
157
}
149
158
}
150
159
Original file line number Diff line number Diff line change @@ -17,6 +17,16 @@ LL | impls_trait::<MultipleCandidates>();
17
17
| ^^^^^^^^^^^^^^^^^^ the trait `Trait` is not implemented for `MultipleCandidates`
18
18
|
19
19
= help: the trait `Trait` is implemented for `MultipleCandidates`
20
+ note: required for `MultipleCandidates` to implement `Trait`
21
+ --> $DIR/inductive-cycle-but-err.rs:43:6
22
+ |
23
+ LL | impl Trait for MultipleNested
24
+ | ^^^^^ ^^^^^^^^^^^^^^
25
+ ...
26
+ LL | MultipleCandidates: Trait,
27
+ | ----- unsatisfied trait bound introduced here
28
+ = note: 8 redundant requirements hidden
29
+ = note: required for `MultipleCandidates` to implement `Trait`
20
30
note: required by a bound in `impls_trait`
21
31
--> $DIR/inductive-cycle-but-err.rs:51:19
22
32
|
You can’t perform that action at this time.
0 commit comments