rust/crates/hir_ty/src/traits
Florian Diebold d8f8b495ad Ignore type bindings in generic_predicates_for_param
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.
2021-03-21 15:29:03 +01:00
..
chalk Turn Obligation into something similar to chalk_ir::DomainGoal 2021-03-20 12:47:12 +01:00
chalk.rs Ignore type bindings in generic_predicates_for_param 2021-03-21 15:29:03 +01:00