From 38b9ad8620e7797d7a22006caf5edb6416e32f7b Mon Sep 17 00:00:00 2001 From: Dylan Reid Date: Mon, 2 Dec 2019 13:50:10 +1100 Subject: [PATCH] sys_util: Ignore struct_util doc comment The code in the doc comment didn't compile, fix the missing command. Ignore the snippet because it depends on arch::__IncompleteArrayField, and getting it to compile isn't worth adding a crate dependency. Signed-off-by: Dylan Reid Change-Id: Ibaee50d0d44fbfb9ca2862b1dda220a0a1e5696b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1944097 Reviewed-by: Daniel Verkamp Reviewed-by: Zach Reizner Tested-by: kokoro --- sys_util/src/struct_util.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys_util/src/struct_util.rs b/sys_util/src/struct_util.rs index 22411a1a60..d77dd967f2 100644 --- a/sys_util/src/struct_util.rs +++ b/sys_util/src/struct_util.rs @@ -18,10 +18,10 @@ fn vec_with_size_in_bytes(size_in_bytes: usize) -> Vec { /// The kvm API has many structs that resemble the following `Foo` structure: /// -/// ``` +/// ```ignore /// #[repr(C)] /// struct Foo { -/// some_data: u32 +/// some_data: u32, /// entries: __IncompleteArrayField<__u32>, /// } /// ```