Skip to content

Remove object lifetime cast#2

Merged
conradludgate merged 1 commit intoconradludgate:mainfrom
Darksonn:dyn-cast
Dec 15, 2025
Merged

Remove object lifetime cast#2
conradludgate merged 1 commit intoconradludgate:mainfrom
Darksonn:dyn-cast

Conversation

@Darksonn
Copy link
Contributor

@Darksonn Darksonn commented Dec 2, 2025

There is an ongoing effort to remove lifetime casts on trait objects from the language. Please see: rust-lang/rust#136776

Using a transmute to perform the relevant pointer cast is the recommended replacement.

@conradludgate conradludgate merged commit 98754cc into conradludgate:main Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants