Skip to content

Various cleanups around opaque types #90376

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

Merged
merged 4 commits into from
Oct 29, 2021
Merged

Various cleanups around opaque types #90376

merged 4 commits into from
Oct 29, 2021

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Oct 28, 2021

Best reviewed commit by commit.

This PR has no functional changes.

Mostly it's moving logic from an extension trait in rustc_trait_selection to inherent impls on rustc_infer.

We don't do member constraint checks in regionck anymore.
All member constraint checks are done in mir borrowck.
They don't depend on trait selection anymore, so there is no need for an extension trait.
It does not depend on anything from rustc_trait_selection anymore.
@oli-obk oli-obk added the C-cleanup Category: PRs that clean code up or issues documenting cleanup. label Oct 28, 2021
@rust-highfive
Copy link
Contributor

r? @matthewjasper

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 28, 2021
@spastorino
Copy link
Member

Cool!

@spastorino
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Oct 28, 2021

📌 Commit bc552fc has been approved by spastorino

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 28, 2021
@spastorino
Copy link
Member

@bors rollup=always

bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 28, 2021
…askrgr

Rollup of 3 pull requests

Successful merges:

 - rust-lang#90082 (Fix minor typos)
 - rust-lang#90336 (Remove extra lines in examples for `Duration::try_from_secs_*`)
 - rust-lang#90376 (Various cleanups around opaque types)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit bcee0a6 into rust-lang:master Oct 29, 2021
@rustbot rustbot added this to the 1.58.0 milestone Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants