v0.0.7
Added
Zeroablederive macro..Zeroable::zeroed()tail expression support in[try_][pin_]init!macros: allowed to omit
fields, omitted fields are initialized with0[pin_]chainfunctions to modify a value after an initializer has run[pin_]init_array_from_fnto createimpl [Pin]Init<[T; N], E>from a generator closure
fn(usize) -> impl [Pin]Init<T, E>impl Zeroable for UnsafeCell
Changed
PinInitis now a supertrait ofInit(before there was a blanket impl)
Removed
- coverage workflow and usage of
#[feature(no_coverage)] impl Zeroable for Infallible(see Security)
Fixed
Selfin generic bounds on structs with#[pin_data]- const generic default parameter values can now be used on structs with
#[pin_data]
Security
impl Zeroable for Infallible(#13) it was possible to trigger UB by creating a value of type
Box<Infallible>viaBox::init(zeroed())
Full Changes: v0.0.6...v0.0.7