You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
burakemir opened this issue
Feb 2, 2024
· 1 comment
· Fixed by #3557
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.
This lifetime extension was a mistake.
Closes#3556
BREAKING CHANGE: The returned lifetime from `Sleep::downcast_mut_pin()`
is no longer `'static`. This shouldn't affect most usage. This sort of
breaking change is needed because it is _wrong_.
seanmonstar
changed the title
Unclear why this lifetime extension is justified
Sleep::downcast_mut_pin() should not extend lifetime
Feb 2, 2024
seanmonstar
added
C-bug
Category: bug. Something is wrong. This is bad!
E-easy
Effort: easy. A task that would be a great starting point for a new contributor.
A-rt
Area: runtime traits/utils
labels
Feb 2, 2024
This lifetime extension was a mistake.
Closes#3556
BREAKING CHANGE: The returned lifetime from `Sleep::downcast_mut_pin()`
is no longer `'static`. This shouldn't affect most usage. This sort of
breaking change is needed because it is _wrong_.
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.
Could you provide safety docs that explain why it is ok to extend the lifetime to static here?
hyper/src/rt/timer.rs
Line 107 in 90eb95f
The text was updated successfully, but these errors were encountered: