diff --git a/waterbox/waterboxhost/src/cinterface.rs b/waterbox/waterboxhost/src/cinterface.rs index f8c3ae5379..bd3fc04ced 100644 --- a/waterbox/waterboxhost/src/cinterface.rs +++ b/waterbox/waterboxhost/src/cinterface.rs @@ -169,7 +169,7 @@ pub extern fn wbx_create_host(layout: &MemoryLayoutTemplate, module_name: *const pub extern fn wbx_destroy_host(obj: *mut WaterboxHost, ret: &mut Return<()>) { let res = (|| { unsafe { - Box::from_raw(obj); + drop(Box::from_raw(obj)); Ok(()) } })(); diff --git a/waterbox/waterboxhost/src/gdb.rs b/waterbox/waterboxhost/src/gdb.rs index 3492a5f5d2..f13e49118a 100644 --- a/waterbox/waterboxhost/src/gdb.rs +++ b/waterbox/waterboxhost/src/gdb.rs @@ -90,5 +90,5 @@ pub unsafe fn deregister(data: &[u8]) { __jit_debug_descriptor.action_flag = JIT_UNREGISTER_FN; __jit_debug_register_code(); - Box::from_raw(entry); + drop(Box::from_raw(entry)); } diff --git a/waterbox/waterboxhost/src/lib.rs b/waterbox/waterboxhost/src/lib.rs index bde1c48b8b..76cb40b925 100644 --- a/waterbox/waterboxhost/src/lib.rs +++ b/waterbox/waterboxhost/src/lib.rs @@ -4,7 +4,6 @@ #![feature(never_type)] #![feature(control_flow_enum)] #![feature(core_intrinsics)] -#![feature(map_first_last)] #![allow(dead_code)]