068320b39e
Impl Default for PhantomPinned `PhantomPinned` is just a marker type, with an obvious default value (the only value). So I can't think of a reason not to do this. Sure, it's used in exotic situations with unsafe code. But the people writing that code can decide for themselves if they can derive `Default`, and in many situations the derived impl will make sense: ```rust #[derive(Default)] struct NeedsPin { marker: PhantomPinned, buf: [u8; 1024], ptr_to_data: Option<*const u8>, } ``` |
||
---|---|---|
.. | ||
alloc | ||
backtrace@af078ecc0b | ||
core | ||
panic_abort | ||
panic_unwind | ||
proc_macro | ||
profiler_builtins | ||
rtstartup | ||
rustc-std-workspace-alloc | ||
rustc-std-workspace-core | ||
rustc-std-workspace-std | ||
std | ||
stdarch@777efaf564 | ||
term | ||
test | ||
unwind |