-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(exporter): drop clause ids, use
PredicateId
both on `Predicate…
…`s and `Clause`s In commit [fca56a], the type `Clause` has been renamed as `ClauseKind`, then commit [21226e] makes `Clause` a `Binder<ClauseKind>`, essentially (with an indirection via `PredicateKind` and an invariant where the predicate kind has to be a `ty::PredicateKind::Clause(ClauseKind)`). That means that now, Rustc always provides `Clause` with binders. Thus, it now makes sense to systematically compute clause identifiers with binders. Since clauses are a subset of predicates, we now always lift clauses to predicates before computing identifiers. This was not possible before, since we lacked binder information to properly lift clauses to predicates [fca56a]: rust-lang/rust@fca56a8 [21226e]: rust-lang/rust@21226ee
- Loading branch information
Showing
6 changed files
with
71 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.