From 1abd864972012b2c027fc3378f1db88333f5d6ea Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 21 Mar 2017 14:04:22 +0100 Subject: Do not derive Default on vtable types https://github.com/servo/rust-bindgen/pull/597#issuecomment-288006557 --- src/codegen/mod.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/codegen/mod.rs') diff --git a/src/codegen/mod.rs b/src/codegen/mod.rs index 7db083e7..577b8aab 100644 --- a/src/codegen/mod.rs +++ b/src/codegen/mod.rs @@ -706,11 +706,7 @@ impl<'a> CodeGenerator for Vtable<'a> { assert_eq!(item.id(), self.item_id); // For now, generate an empty struct, later we should generate function // pointers and whatnot. - let mut attributes = vec![attributes::repr("C")]; - - if ctx.options().derive_default { - attributes.push(attributes::derives(&["Default"])) - } + let attributes = vec![attributes::repr("C")]; let vtable = aster::AstBuilder::new() .item() -- cgit v1.2.3