macro: disable derive_default for now

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-07-19 15:24:39 +02:00
parent 5d9fe0d24d
commit bb62206e27

View File

@ -494,6 +494,13 @@ fn handle_struct_named(
.transpose()?
.unwrap_or(false);
if derive_default {
// We currently fill the actual `default` values from the schema into Option<Foo>, but
// really Option<Foo> should default to None even when there's a Default as our accessors
// will fill in the default at use-time...
panic!("derive_default is not finished");
}
let field_count = item.named.len();
let type_s = type_ident.to_string();