Skip to content

Commit

Permalink
Auto merge of #122891 - compiler-errors:encode-implied-predicates-alw…
Browse files Browse the repository at this point in the history
…ays, r=oli-obk

Encode implied predicates for traits

In #112629, we decided to make associated type bounds in the "supertrait" AST position *implied* even though they're not supertraits themselves.

This means that the `super_predicates` and `implied_predicates` queries now differ for regular traits. The assumption that they didn't differ was hard-coded in #107614, so in cross-crate positions this means that we forget the implied predicates from associated type bounds.

This isn't unsound, just kind of annoying. This should be backported since associated type bounds are slated to stabilize for 1.78 -- either that, or associated type bounds can be reverted on beta and re-shipped in 1.79 with this patch.

Fixes #122859
  • Loading branch information
bors committed Mar 24, 2024
2 parents 907c393 + fe6ce8a commit dc8d914
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit dc8d914

Please sign in to comment.