Skip to main content

drop_fn_name

Function drop_fn_name 

Source
pub fn drop_fn_name(ty: Type, type_pool: &TypeInternPool) -> Option<String>
Expand description

Return the name of the synthesized __gruel_drop_* function for ty, or None if the type is trivially droppable.

ADR-0081: previously, built-in types with destructor set (only String, dropped via the runtime __gruel_drop_String) returned None here so codegen could route to the runtime symbol directly. That carve-out retired with the runtime collapse — String is now a regular prelude struct whose drop is auto-synthesized from its bytes: Vec(u8) field.