Put super as the first field, and removed _pin

This commit is contained in:
2026-06-12 16:25:16 +02:00
parent b19b1bb41d
commit d3ff834111
+2 -4
View File
@@ -108,16 +108,14 @@ impl ClassProcessedData {
)); ));
cg.indent += 1; 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 { if let Some(ref inherits) = self.inherits {
cg.add_indented("pub _super: "); cg.add_indented("pub _super: ");
cg.add(&get_type_from_path(inherits).get_rust()); cg.add(&get_type_from_path(inherits).get_rust());
cg.addln(","); cg.addln(",");
} }
cg.add_indentedln("pub _vptr: &'static [*const std::ffi::c_void],");
for field in &self.fields { for field in &self.fields {
cg.add_indentedln(&field.get_comment()); cg.add_indentedln(&field.get_comment());
cg.add_indentedln(&field.item.decl.get_rust()); cg.add_indentedln(&field.item.decl.get_rust());