Skip to content

Sleep::downcast_mut_pin() should not extend lifetime #3556

Closed
@burakemir

Description

@burakemir

Could you provide safety docs that explain why it is ok to extend the lifetime to static here?

pub fn downcast_mut_pin<T>(self: Pin<&mut Self>) -> Option<Pin<&'static mut T>>

Metadata

Metadata

Assignees

Labels

A-rtArea: runtime traits/utilsC-bugCategory: bug. Something is wrong. This is bad!E-easyEffort: easy. A task that would be a great starting point for a new contributor.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions