Skip to content

Trait upcasting coercion (part1)#86264

Merged
bors merged 4 commits intorust-lang:masterfrom
crlf0710:trait_upcasting_part1
Jul 31, 2021
Merged

Trait upcasting coercion (part1)#86264
bors merged 4 commits intorust-lang:masterfrom
crlf0710:trait_upcasting_part1

Conversation

@crlf0710
Copy link
Copy Markdown
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.

Loading
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