bors[bot] 5bdae82947
Merge #10456
10456: fix: Avoid cycle when lowering predicates for associated item lookup r=flodiebold a=jonas-schievink

Fixes https://github.com/rust-analyzer/rust-analyzer/issues/10386

(the salsa bug persists, but this lets us avoid it by fixing the underlying bug)

This reimplements the rustc logic in b27661eb33/compiler/rustc_typeck/src/collect.rs (L556): When resolving an associated type `T::Item`, we've previously lowered all predicates that could affect `T`, but we actually have to look only at those predicates whose traits define an associated type of the right name.

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
2021-10-04 15:58:06 +00:00
..
2021-10-01 12:33:18 +02:00
2021-10-03 13:35:47 +00:00
2021-10-03 11:06:06 +00:00
2021-10-04 15:16:13 +02:00
2021-10-03 12:19:02 +00:00
2021-10-04 15:16:13 +02:00
2021-09-27 12:54:24 +02:00
2021-10-02 20:38:39 +03:00
2021-10-04 17:33:48 +08:00
2021-10-01 18:55:52 +03:00
2021-10-01 18:55:52 +03:00
2021-10-01 18:51:45 +03:00
2021-10-01 18:51:45 +03:00
2021-10-04 17:33:48 +08:00
2021-09-27 19:02:03 +02:00
2021-09-28 10:20:35 +08:00
2021-10-01 18:57:04 +03:00