From d3ff83411166f9364cb55389607d9d757f94e75a Mon Sep 17 00:00:00 2001 From: Selimaj Dev Date: Fri, 12 Jun 2026 16:25:16 +0200 Subject: [PATCH] Put super as the first field, and removed _pin --- crates/codegen/src/class_decl.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/codegen/src/class_decl.rs b/crates/codegen/src/class_decl.rs index 9938d0b..93eb23b 100644 --- a/crates/codegen/src/class_decl.rs +++ b/crates/codegen/src/class_decl.rs @@ -108,16 +108,14 @@ impl ClassProcessedData { )); cg.indent += 1; - cg.add_indentedln("pub _vptr: &'static [*const std::ffi::c_void],"); - - cg.add_indentedln("_pin: std::marker::PhantomPinned,"); - if let Some(ref inherits) = self.inherits { cg.add_indented("pub _super: "); cg.add(&get_type_from_path(inherits).get_rust()); cg.addln(","); } + cg.add_indentedln("pub _vptr: &'static [*const std::ffi::c_void],"); + for field in &self.fields { cg.add_indentedln(&field.get_comment()); cg.add_indentedln(&field.item.decl.get_rust());