mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 08:17:53 -06:00
rust: use MaybeUninit::zeroed() in const context
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
465a4b80e2
commit
0823837224
3 changed files with 20 additions and 96 deletions
|
@ -83,10 +83,6 @@ are missing:
|
|||
* "Return position ``impl Trait`` in Traits" (1.75.0, blocker for including
|
||||
the pinned-init create).
|
||||
|
||||
* ``MaybeUninit::zeroed()`` as a ``const`` function (1.75.0). QEMU's
|
||||
``Zeroable`` trait can be implemented without ``MaybeUninit::zeroed()``,
|
||||
so this would be just a cleanup.
|
||||
|
||||
* ``c"" literals`` (stable in 1.77.0). QEMU provides a ``c_str!()`` macro
|
||||
to define ``CStr`` constants easily
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue