Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clauses cleanup #638

Merged
merged 3 commits into from
Nov 10, 2020
Merged

Clauses cleanup #638

merged 3 commits into from
Nov 10, 2020

Conversation

matthewjasper
Copy link
Contributor

  • Add basic clauses for trait objects being wf
  • Push clauses for auto traits on TyKind::OpaqueType
  • Use a single match on the TyKind for Implemented goals
  • Normalize TyKind::Alias self types

Copy link
Member

@jackh726 jackh726 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM, I think. I'm a bit surprised these cases weren't covered in some form before. r=me or maybe @nikomatsakis might want a look

let binders = Binders::with_fresh_type_var(interner, |ty_var| ty_var);

// forall<..., T> {
// <X as Y>::Z: Trait :- T: Trait, <X as Y>::Z == T
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks to me a lot like the sem-to-syn equality work

@jackh726
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Nov 10, 2020

📌 Commit 575b0ec has been approved by jackh726

@bors
Copy link
Collaborator

bors commented Nov 10, 2020

⌛ Testing commit 575b0ec with merge 389a261...

@bors
Copy link
Collaborator

bors commented Nov 10, 2020

☀️ Test successful - checks-actions
Approved by: jackh726
Pushing 389a261 to master...

@bors bors merged commit 389a261 into rust-lang:master Nov 10, 2020
@matthewjasper matthewjasper deleted the clauses-cleanup branch November 10, 2020 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants