Stabilize RFC3324 dyn upcasting coercion by Urgau · Pull Request #118133 · rust-...
source link: https://github.com/rust-lang/rust/pull/118133
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Conversation
This PR stabilize the trait_upcasting
feature, aka rust-lang/rfcs#3324.
The FCP was completed here: #65991 (comment).
And also remove the deref_into_dyn_supertrait
lint which is now handled by dyn upcasting coercion.
Collaborator
r? @b-naber (rustbot has picked a reviewer for you, use r? to override) |
added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.
labels
Collaborator
The Miri subtree was changed cc @rust-lang/miri |
This comment has been minimized.
This comment has been minimized.
Should we keep the |
Contributor
Author
Sure, if those impls don't do what the user expects we should tell them. What about this diagnostic change?
|
Contributor
maybe something like
something like this maybe? 🤔 |
Contributor
Author
Done. I've restored the lint, removed the future incompatibility mark and changed the diagnostic output as discussed. |
src/tools/miri/tests/fail/dyn-upcast-trait-mismatch.rs
Outdated Show resolved
Member
@bors delegate+ |
Contributor
✌️ @Urgau, you can now approve this pull request! If @WaffleLapkin told you to " |
Contributor
Author
|
Contributor
Author
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
Contributor
☀️ Test successful - checks-actions |
Contributor
Author
@rustbot label +relnotes |
added the relnotes Marks issues that should be documented in the release notes of the next release. label
Collaborator
Finished benchmarking commit (6d2b84b): comparison URL. Overall result: ❌ regressions - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)Results CyclesResults Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 675.017s -> 675.132s (0.02%) |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Successfully merging this pull request may close these issues.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK