Skip to content

Remove the AsAny helper trait - #4649

Open
ogoffart wants to merge 1 commit into
rust-windowing:masterfrom
slint-ui:olivier/remove-as-any
Open

Remove the AsAny helper trait#4649
ogoffart wants to merge 1 commit into
rust-windowing:masterfrom
slint-ui:olivier/remove-as-any

Conversation

@ogoffart

Copy link
Copy Markdown
Contributor

Trait upcasting (rust-lang/rust#65991) is stable since Rust 1.86, which is already the MSRV, so dyn trait objects coerce to dyn Any directly. Traits that needed AsAny now list Any as their supertrait, and the as_any module is renamed to casting as only the impl_dyn_casting macro remains.

Trait upcasting (rust-lang/rust#65991) is stable since Rust 1.86, which
is already the MSRV, so dyn trait objects coerce to dyn Any directly.
Traits that needed AsAny now list Any as their supertrait, and the
as_any module is renamed to casting as only the impl_dyn_casting macro
remains.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants