bors[bot] 35868c4f7d
Merge #8133
8133: Ignore type bindings in generic_predicates_for_param (fix panic on ena and crates depending on it) r=flodiebold a=flodiebold

This allows us to handle more cases without a query cycle, which includes certain cases that rustc accepted. That in turn means we avoid triggering salsa-rs/salsa#257 on valid code (it will still happen if the user writes an actual cycle).

We actually accept more definitions than rustc now; that's because rustc only ignores bindings when looking up super traits, whereas we now also ignore them when looking for predicates to disambiguate associated type shorthand. We could introduce a separate query for super traits if necessary, but for now I think this should be fine.

Co-authored-by: Florian Diebold <flodiebold@gmail.com>
2021-03-21 16:42:08 +00:00
..
2021-03-21 16:15:41 +01:00
2021-03-21 16:15:41 +01:00
2021-03-21 16:42:08 +00:00
2021-03-21 15:49:31 +00:00
2021-03-21 16:42:08 +00:00
2021-03-21 15:57:14 +00:00
2021-03-21 11:45:37 +02:00
2021-03-21 16:15:41 +01:00
2021-03-21 15:57:14 +00:00
2021-03-21 16:15:41 +01:00
2021-03-21 16:15:41 +01:00