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

More clause fixes #728

Merged
merged 3 commits into from
Nov 28, 2021
Merged

More clause fixes #728

merged 3 commits into from
Nov 28, 2021

Conversation

matthewjasper
Copy link
Contributor

  • Makes all traits with built-in implementations effectively non-enumerable
  • Handle clause generation for trait objects with escaping canonical vars
  • Check more things for some of the clauses for WellFormed
  • Make const generics have type usize in chalk-integration

Since const generics are primarily used by arrays, this avoids an
unusual disparity between Chalk and Rust.
There's no way to enumerate all types these can apply to. Flounder if we
have to prove that one of these traits applies to an inference variable.
Check that `T: 'a` for `&'a T` and `&'a mut T`, check that
`T: Sized` in `[T]`, `[T; N]` and `(..., T, ...)`.
@jackh726
Copy link
Member

jackh726 commented Oct 3, 2021

Overall this looks quite good to me. I was trying to look through history a bit here to see why the WF clauses haven't always been this way.

Anyways, I want to review this once more when I'm not on mobile before I merge, but this is quite appreciated!

@jackh726
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Nov 28, 2021

📌 Commit f8ba227 has been approved by jackh726

@bors
Copy link
Contributor

bors commented Nov 28, 2021

⌛ Testing commit f8ba227 with merge 7cd2682...

@bors
Copy link
Contributor

bors commented Nov 28, 2021

☀️ Test successful - checks-actions
Approved by: jackh726
Pushing 7cd2682 to master...

@bors bors merged commit 7cd2682 into rust-lang:master Nov 28, 2021
@matthewjasper matthewjasper deleted the wf-clauses branch November 28, 2021 23:57
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