Delete strings and arrays by refcount instead of from a interface-type side

This commit is contained in:
vms 2020-08-20 22:07:41 +03:00
parent 8418111074
commit 89da1d5285

View File

@ -41,7 +41,6 @@ impl RecordSerializerGlueCodeGenerator for fce_ast_types::AstRecordItem {
quote! { quote! {
raw_record.push(#field_ident.as_ptr() as _); raw_record.push(#field_ident.as_ptr() as _);
raw_record.push(#field_ident.len() as _); raw_record.push(#field_ident.len() as _);
std::mem::forget(#field_ident);
} }
} }
ParsedType::Record(_) => { ParsedType::Record(_) => {