Print more information about types that cannot be generated by wiggle

This commit is contained in:
Andrew Brown
2020-09-18 13:08:16 -07:00
parent 97e0f4864c
commit 31165d0e9b

View File

@@ -33,7 +33,7 @@ pub(super) fn define_struct(
let pointee_type = names.type_ref(&pointee, quote!('a)); let pointee_type = names.type_ref(&pointee, quote!('a));
quote!(#rt::GuestPtr<'a, #pointee_type>) quote!(#rt::GuestPtr<'a, #pointee_type>)
} }
_ => unimplemented!("other anonymous struct members"), _ => unimplemented!("other anonymous struct members: {:?}", m.tref),
}, },
}; };
quote!(pub #name: #type_) quote!(pub #name: #type_)
@@ -63,7 +63,7 @@ pub(super) fn define_struct(
let #name = <#rt::GuestPtr::<#pointee_type> as #rt::GuestType>::read(&#location)?; let #name = <#rt::GuestPtr::<#pointee_type> as #rt::GuestType>::read(&#location)?;
} }
} }
_ => unimplemented!("other anonymous struct members"), _ => unimplemented!("other anonymous struct members: {:?}", ty),
}, },
} }
}); });