Skip to content

Remove the AsAny helper trait - #4649

Merged
ogoffart merged 1 commit into
rust-windowing:masterfrom
slint-ui:olivier/remove-as-any
Aug 21, 2026
Merged

Remove the AsAny helper trait#4649
ogoffart merged 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.

@ogoffart
ogoffart force-pushed the olivier/remove-as-any branch from a33c570 to 0790833 Compare August 19, 2026 08:32
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.
@ogoffart
ogoffart force-pushed the olivier/remove-as-any branch from 0790833 to 0a34210 Compare August 21, 2026 11:20
@ogoffart
ogoffart merged commit 874a1e3 into rust-windowing:master Aug 21, 2026
50 checks passed
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