Skip to content

Commit 8b71c79

Browse files
committed
Do not derive Default on vtable types
#597 (comment)
1 parent cc6f3b2 commit 8b71c79

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/codegen/mod.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -706,11 +706,7 @@ impl<'a> CodeGenerator for Vtable<'a> {
706706
assert_eq!(item.id(), self.item_id);
707707
// For now, generate an empty struct, later we should generate function
708708
// pointers and whatnot.
709-
let mut attributes = vec![attributes::repr("C")];
710-
711-
if ctx.options().derive_default {
712-
attributes.push(attributes::derives(&["Default"]))
713-
}
709+
let attributes = vec![attributes::repr("C")];
714710

715711
let vtable = aster::AstBuilder::new()
716712
.item()

0 commit comments

Comments
 (0)