From: Paolo Bonzini Date: Tue, 25 Feb 2025 09:28:56 +0000 (+0100) Subject: rust: vmstate: add std::pin::Pin as transparent wrapper X-Git-Tag: v10.0.0-rc0~19^2~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d7f5ae8b30cc9652a4ddcfeb52076f5aef6d78b6;p=thirdparty%2Fqemu.git rust: vmstate: add std::pin::Pin as transparent wrapper Signed-off-by: Paolo Bonzini --- diff --git a/rust/qemu-api/src/vmstate.rs b/rust/qemu-api/src/vmstate.rs index 24a4dc81e7f..1e7ba531e2a 100644 --- a/rust/qemu-api/src/vmstate.rs +++ b/rust/qemu-api/src/vmstate.rs @@ -330,6 +330,7 @@ macro_rules! impl_vmstate_transparent { impl_vmstate_transparent!(std::cell::Cell where T: VMState); impl_vmstate_transparent!(std::cell::UnsafeCell where T: VMState); +impl_vmstate_transparent!(std::pin::Pin where T: VMState); impl_vmstate_transparent!(crate::cell::BqlCell where T: VMState); impl_vmstate_transparent!(crate::cell::BqlRefCell where T: VMState);