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

GenericParam does not need to be a HIR owner. #83424

Merged
merged 1 commit into from
Mar 25, 2021
Merged

Conversation

cjgillot
Copy link
Contributor

@cjgillot cjgillot commented Mar 23, 2021

The special case is not required.

Universal impl traits design to regular generic parameters, and their content is owned by the enclosing item.

Existential (and opaque) impl traits generate their own enclosing item, and are collected through it.

@cjgillot cjgillot marked this pull request as ready for review March 23, 2021 22:45
@cjgillot
Copy link
Contributor Author

r? @lcnr

@lcnr
Copy link
Contributor

lcnr commented Mar 23, 2021

ah, i think this was needed because we previously eagerly lowered patterns?

@bors r+

@bors
Copy link
Contributor

bors commented Mar 23, 2021

📌 Commit 4c0b7ac has been approved by lcnr

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Mar 23, 2021
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Mar 24, 2021
GenericParam does not need to be a HIR owner.

The special case is not required.

Universal impl traits design to regular generic parameters, and their content is owned by the enclosing item.

Existential (and opaque) impl traits generate their own enclosing item, and are collected through it.
@bors
Copy link
Contributor

bors commented Mar 25, 2021

⌛ Testing commit 4c0b7ac with merge cb473c2...

@bors
Copy link
Contributor

bors commented Mar 25, 2021

☀️ Test successful - checks-actions
Approved by: lcnr
Pushing cb473c2 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Mar 25, 2021
@bors bors merged commit cb473c2 into rust-lang:master Mar 25, 2021
@rustbot rustbot added this to the 1.53.0 milestone Mar 25, 2021
@cjgillot cjgillot deleted the noparam branch March 25, 2021 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. 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.

4 participants