f351840088
offset_of! was stabilized in Rust 1.77.0. Use an alternative implemenation that was found on the Rust forums, and whose author agreed to license as MIT for use in QEMU. The alternative allows only one level of field access, but apart from this can be used just by replacing core::mem::offset_of! with qemu_api::offset_of!. The actual implementation of offset_of! is done in a declarative macro, but for simplicity and to avoid introducing an extra level of indentation, the trigger is a procedural macro #[derive(offsets)]. The procedural macro is perhaps a bit overengineered, but it helps introducing some idioms that will be useful in the future as well. Signed-off-by: Junjie Mao <junjie.mao@hotmail.com> Co-developed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> |
||
---|---|---|
.. | ||
arbitrary-int-1-rs | ||
berkeley-softfloat-3 | ||
berkeley-testfloat-3 | ||
bilge-0.2-rs | ||
bilge-impl-0.2-rs | ||
either-1-rs | ||
itertools-0.11-rs | ||
proc-macro2-1-rs | ||
proc-macro-error-1-rs | ||
proc-macro-error-attr-1-rs | ||
quote-1-rs | ||
syn-2-rs | ||
unicode-ident-1-rs | ||
bilge-impl-1.63.0.patch |