Add Yokeable::upgrade_output function #3507
Labels
C-zerovec
Component: Yoke, ZeroVec, DataBake
S-small
Size: One afternoon (small bug fix or enhancement)
T-techdebt
Type: ICU4X code health and tech debt
Milestone
I would ideally like to avoid having any unsafety here.
I think all we need here is
fn upgrade_output<Y: Yokeable<'static>>(output: Y::Output) -> Y
, which internally callsYokeable::make()
. Does that make sense?Yokeable::make()
is only scarily unsafe when the lifetimes involved aren't'static
.Originally posted by @Manishearth in #3467 (comment)
The text was updated successfully, but these errors were encountered: