mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-23 13:05:45 +00:00
faba6a3fb3
With Rust 1.49 using attributes on a function parameter is not allowed. The recommended workaround is to put it in a new block. error[E0658]: attributes on expressions are experimental --> vmm/src/memory_manager.rs:698:17 | 698 | #[cfg(target_arch = "x86_64")] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information error: removing an expression is not supported in this position --> vmm/src/memory_manager.rs:698:17 | 698 | #[cfg(target_arch = "x86_64")] | Signed-off-by: Rob Bradford <robert.bradford@intel.com>