diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-05-02 10:35:49 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-05-06 16:02:04 +0200 |
| commit | b134a09ffab3b918979007cf40f603e5b54ed597 (patch) | |
| tree | 5272bd8852bc433ae6e2045a5b30f69c8ccda17c /docs/devel | |
| parent | 5df3fe062fb0be9a6689dc0336087b214dd30e5c (diff) | |
| download | focaccia-qemu-b134a09ffab3b918979007cf40f603e5b54ed597.tar.gz focaccia-qemu-b134a09ffab3b918979007cf40f603e5b54ed597.zip | |
rust: remove offset_of replacement
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/devel')
| -rw-r--r-- | docs/devel/rust.rst | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/docs/devel/rust.rst b/docs/devel/rust.rst index a315f66886..5cfafc532c 100644 --- a/docs/devel/rust.rst +++ b/docs/devel/rust.rst @@ -84,12 +84,6 @@ are missing: * ``c"" literals`` (stable in 1.77.0). QEMU provides a ``c_str!()`` macro to define ``CStr`` constants easily -* ``offset_of!`` (stable in 1.77.0). QEMU uses ``offset_of!()`` heavily; it - provides a replacement in the ``qemu_api`` crate, but it does not support - lifetime parameters and therefore ``&'a Something`` fields in the struct - may have to be replaced by ``NonNull<Something>``. *Nested* ``offset_of!`` - was only stabilized in Rust 1.82.0, but it is not used. - * inline const expression (stable in 1.79.0), currently worked around with associated constants in the ``FnCall`` trait. |