-
Notifications
You must be signed in to change notification settings - Fork 14k
Trait upcasting coercion (part1) #86264
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
Conversation
|
(rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
af39d0f to
4965666
Compare
|
r? @nikomatsakis to clarify on #60900 (comment) |
compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs
Outdated
Show resolved
Hide resolved
compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs
Outdated
Show resolved
Hide resolved
4965666 to
c2c6bb7
Compare
This comment has been minimized.
This comment has been minimized.
c2c6bb7 to
2f0db91
Compare
|
☔ The latest upstream changes (presumably #86446) made this pull request unmergeable. Please resolve the merge conflicts. |
2f0db91 to
4b7453d
Compare
This comment has been minimized.
This comment has been minimized.
|
I'd like this to wait on #86461 first. |
|
☔ The latest upstream changes (presumably #83898) made this pull request unmergeable. Please resolve the merge conflicts. |
4b7453d to
eff21b2
Compare
This comment has been minimized.
This comment has been minimized.
|
This is ready for review now. |
eff21b2 to
a9ed43a
Compare
|
✌️ @crlf0710 can now approve this pull request |
|
☔ The latest upstream changes (presumably #87237) made this pull request unmergeable. Please resolve the merge conflicts. |
9e4a529 to
d60ae35
Compare
|
Tests added with small tweaking on the second group. |
|
📌 Commit d60ae35deaaee047ef186c6538bf06f198cb7cbe has been approved by |
|
⌛ Testing commit d60ae35deaaee047ef186c6538bf06f198cb7cbe with merge c7e6df822218f6405f46012092b8f4de4840228d... |
This comment has been minimized.
This comment has been minimized.
|
💔 Test failed - checks-actions |
d60ae35 to
a28ee25
Compare
|
Added |
|
@bors r=nikomatsakis |
|
📌 Commit a28ee25 has been approved by |
|
☀️ Test successful - checks-actions |
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`
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`
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
ExistentialTraitRefvalues correctly...)The next part will be implementing the pointer casting.