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

Trait upcasting coercion (part1) #86264

Merged
merged 4 commits into from
Jul 31, 2021
Merged

Conversation

crlf0710
Copy link
Member

@crlf0710 crlf0710 commented Jun 13, 2021

This revives the first part of earlier PR #60900 .

It's not very clear to me which parts of that pr was design decisions, so i decide to cut it into pieces and land them incrementally. This allows more eyes on the details.

This is the first part, it adds feature gates, adds feature gates tests, and implemented the unsize conversion part.
(I hope i have dealt with the ExistentialTraitRef values correctly...)

The next part will be implementing the pointer casting.

@crlf0710 crlf0710 added the F-trait_upcasting `#![feature(trait_upcasting)]` label Jun 13, 2021
@rust-highfive
Copy link
Collaborator

r? @petrochenkov

(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 Jun 13, 2021
@rust-log-analyzer

This comment has been minimized.

@petrochenkov
Copy link
Contributor

r? @nikomatsakis to clarify on #60900 (comment)
(I'm also not familiar with trait selection etc.)

@rust-log-analyzer

This comment has been minimized.

@crlf0710 crlf0710 added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 28, 2021
@bors
Copy link
Contributor

bors commented Jun 29, 2021

☔ The latest upstream changes (presumably #86446) made this pull request unmergeable. Please resolve the merge conflicts.

@rust-log-analyzer

This comment has been minimized.

@crlf0710
Copy link
Member Author

crlf0710 commented Jul 9, 2021

I'd like this to wait on #86461 first.

@crlf0710 crlf0710 added S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 9, 2021
@bors
Copy link
Contributor

bors commented Jul 17, 2021

☔ The latest upstream changes (presumably #83898) made this pull request unmergeable. Please resolve the merge conflicts.

@crlf0710 crlf0710 added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. labels Jul 25, 2021
@rust-log-analyzer

This comment has been minimized.

@crlf0710
Copy link
Member Author

This is ready for review now.

@bors
Copy link
Contributor

bors commented Jul 30, 2021

✌️ @crlf0710 can now approve this pull request

@bors
Copy link
Contributor

bors commented Jul 30, 2021

☔ The latest upstream changes (presumably #87237) made this pull request unmergeable. Please resolve the merge conflicts.

@crlf0710
Copy link
Member Author

Tests added with small tweaking on the second group.
@bors r=nikomatsakis

@bors
Copy link
Contributor

bors commented Jul 30, 2021

📌 Commit d60ae35deaaee047ef186c6538bf06f198cb7cbe has been approved by nikomatsakis

@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 Jul 30, 2021
@bors
Copy link
Contributor

bors commented Jul 30, 2021

⌛ Testing commit d60ae35deaaee047ef186c6538bf06f198cb7cbe with merge c7e6df822218f6405f46012092b8f4de4840228d...

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Jul 30, 2021

💔 Test failed - checks-actions

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

Added // ignore-compare-mode-nll annotations because the error output is not exactly the same

@crlf0710
Copy link
Member Author

@bors r=nikomatsakis

@bors
Copy link
Contributor

bors commented Jul 31, 2021

📌 Commit a28ee25 has been approved by nikomatsakis

@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 Jul 31, 2021
@bors
Copy link
Contributor

bors commented Jul 31, 2021

⌛ Testing commit a28ee25 with merge 7069a8c...

@bors
Copy link
Contributor

bors commented Jul 31, 2021

☀️ Test successful - checks-actions
Approved by: nikomatsakis
Pushing 7069a8c to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jul 31, 2021
@bors bors merged commit 7069a8c into rust-lang:master Jul 31, 2021
@rustbot rustbot added this to the 1.56.0 milestone Jul 31, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 3, 2021
Trait upcasting coercion (part2)

This is the second part of trait upcasting coercion implementation.

Currently this is blocked on rust-lang#86264 .

The third part might be implemented using unsafety checking

r? `@bjorn3`
bjorn3 pushed a commit to bjorn3/rust that referenced this pull request Aug 6, 2021
Trait upcasting coercion (part2)

This is the second part of trait upcasting coercion implementation.

Currently this is blocked on rust-lang#86264 .

The third part might be implemented using unsafety checking

r? `@bjorn3`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-trait_upcasting `#![feature(trait_upcasting)]` 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.

8 participants