| /wasmtime-44.0.1/crates/core/src/ |
| H A D | undo.rs | 85 inner: mem::ManuallyDrop<T>, 86 undo: mem::ManuallyDrop<F>, 95 let inner = unsafe { mem::ManuallyDrop::take(&mut self.inner) }; in drop() 96 let undo = unsafe { mem::ManuallyDrop::take(&mut self.undo) }; in drop() 144 inner: mem::ManuallyDrop::new(inner), in new() 145 undo: mem::ManuallyDrop::new(undo), in new() 153 let mut guard = mem::ManuallyDrop::new(guard); in commit() 159 mem::ManuallyDrop::drop(&mut guard.undo); in commit() 161 mem::ManuallyDrop::take(&mut guard.inner) in commit()
|
| /wasmtime-44.0.1/crates/c-api/src/ |
| H A D | val.rs | 6 use std::mem::{ManuallyDrop, MaybeUninit}; 149 pub anyref: ManuallyDrop<wasmtime_anyref_t>, 150 pub externref: ManuallyDrop<wasmtime_externref_t>, 151 pub exnref: ManuallyDrop<wasmtime_exnref_t>, 167 let _ = ManuallyDrop::take(&mut self.of.anyref); in drop() 170 let _ = ManuallyDrop::take(&mut self.of.externref); in drop() 173 let _ = ManuallyDrop::take(&mut self.of.exnref); in drop() 332 ManuallyDrop::drop(val); in wasmtime_val_unroot() 342 anyref: ManuallyDrop::new(src.of.anyref.as_wasmtime().into()), in wasmtime_val_clone() 345 externref: ManuallyDrop::new(src.of.externref.as_wasmtime().into()), in wasmtime_val_clone() [all …]
|
| H A D | extern.rs | 5 use std::mem::ManuallyDrop; 97 pub sharedmemory: ManuallyDrop<Box<SharedMemory>>, 105 ManuallyDrop::drop(&mut self.of.sharedmemory); in drop() 147 sharedmemory: ManuallyDrop::new(Box::new(sharedmemory)), in from() 159 pub unsafe extern "C" fn wasmtime_extern_delete(e: &mut ManuallyDrop<wasmtime_extern_t>) { in wasmtime_extern_delete() 160 ManuallyDrop::drop(e); in wasmtime_extern_delete()
|
| H A D | ref.rs | 2 use std::mem::{ManuallyDrop, MaybeUninit}; 215 ManuallyDrop::new(self).to_owned() 310 ManuallyDrop::drop(val); in wasmtime_anyref_unroot() 440 val: Option<&mut ManuallyDrop<wasmtime_externref_t>>, in wasmtime_externref_unroot() 444 ManuallyDrop::drop(val); in wasmtime_externref_unroot() 484 ManuallyDrop::drop(val); in wasmtime_exnref_unroot() 502 ManuallyDrop::drop(val); in wasmtime_eqref_unroot() 670 structref: Option<&mut ManuallyDrop<wasmtime_structref_t>>, in wasmtime_structref_unroot() 673 ManuallyDrop::drop(structref); in wasmtime_structref_unroot() 825 arrayref: Option<&mut ManuallyDrop<wasmtime_arrayref_t>>, in wasmtime_arrayref_unroot() [all …]
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/component/concurrent/ |
| H A D | abort.rs | 1 use std::mem::{self, ManuallyDrop}; 94 future: ManuallyDrop::new(future), in run() 127 future: ManuallyDrop<F>, 176 ManuallyDrop::drop(&mut self.future); in drop()
|
| H A D | futures_and_streams.rs | 25 use core::mem::{self, ManuallyDrop, MaybeUninit}; 4796 value: ManuallyDrop::new(result), in take() 4823 value: ManuallyDrop<T>, 4847 let value = unsafe { ManuallyDrop::take(&mut self.value) }; in drop()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/store/ |
| H A D | gc.rs | 142 memory: ManuallyDrop<vm::Memory>, in grow_gc_heap() 149 memory: ManuallyDrop::new(store.unwrap_gc_store_mut().gc_heap.take_memory()), in grow_gc_heap() 165 ManuallyDrop::take(&mut self.memory), in grow_gc_heap()
|
| /wasmtime-44.0.1/crates/c-api/src/component/types/ |
| H A D | component.rs | 6 use std::mem::{ManuallyDrop, MaybeUninit}; 162 item: &mut ManuallyDrop<wasmtime_component_item_t>, in wasmtime_component_item_delete() 165 ManuallyDrop::drop(item); in wasmtime_component_item_delete()
|
| H A D | val.rs | 2 use std::mem::{ManuallyDrop, MaybeUninit}; 89 ret: &mut ManuallyDrop<wasmtime_component_valtype_t>, in wasmtime_component_valtype_delete() 91 unsafe { ManuallyDrop::drop(ret) }; in wasmtime_component_valtype_delete()
|
| /wasmtime-44.0.1/crates/environ/src/ |
| H A D | string_pool.rs | 31 map: mem::ManuallyDrop<TryHashMap<&'static str, Atom>>, 35 strings: mem::ManuallyDrop<TryVec<Box<str>>>, 45 mem::ManuallyDrop::drop(&mut self.map); in drop() 46 mem::ManuallyDrop::drop(&mut self.strings); in drop()
|
| /wasmtime-44.0.1/cranelift/jit/src/memory/ |
| H A D | arena.rs | 2 use std::mem::ManuallyDrop; 97 alloc: ManuallyDrop<Option<region::Allocation>>, 118 alloc: ManuallyDrop::new(Some(alloc)), in new_with_size()
|
| /wasmtime-44.0.1/crates/core/src/alloc/ |
| H A D | try_clone.rs | 134 impl<T> TryClone for mem::ManuallyDrop<T> implementation 139 Ok(mem::ManuallyDrop::new((**self).try_clone()?)) in try_clone()
|
| /wasmtime-44.0.1/crates/fiber/src/ |
| H A D | unix.rs | 334 use std::mem::ManuallyDrop; 458 mmap: ManuallyDrop::new(stack), in new_fiber_stack() 469 mmap: ManuallyDrop<MmapFiberStack>, 492 let stack = unsafe { ManuallyDrop::take(&mut self.mmap) }; in drop()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | store.rs | 110 use core::mem::{self, ManuallyDrop, MaybeUninit}; 203 inner: ManuallyDrop<Box<StoreInner<T>>>, 264 data_no_provenance: ManuallyDrop<T>, 788 data_no_provenance: ManuallyDrop::new(data), in try_new() 839 inner: ManuallyDrop::new(inner), in try_new() 892 let mut inner = ManuallyDrop::take(&mut self.inner); in into_data() 894 ManuallyDrop::take(&mut inner.data_no_provenance) in into_data() 1470 let data: *const ManuallyDrop<T> = &raw const self.data_no_provenance; in data() constant 1490 let data: *mut ManuallyDrop<T> = &raw mut self.data_no_provenance; in data_limiter_and_opaque() 2881 ManuallyDrop::drop(&mut self.inner.data_no_provenance); in drop() [all …]
|
| /wasmtime-44.0.1/crates/test-programs/src/bin/ |
| H A D | async_cancel_transmit.rs | 10 mem::{self, ManuallyDrop}, 256 ManuallyDrop::new(vec![0_u8; stream_expected.len()]).as_mut_ptr(); in callback_start()
|
| /wasmtime-44.0.1/crates/c-api/src/component/ |
| H A D | val.rs | 6 use std::mem::{ManuallyDrop, MaybeUninit}; 386 value: &mut ManuallyDrop<wasmtime_component_val_t>, in wasmtime_component_val_delete() 389 ManuallyDrop::drop(value); in wasmtime_component_val_delete()
|
| /wasmtime-44.0.1/crates/core/src/error/ |
| H A D | error.rs | 598 error: mem::ManuallyDrop<T>, in new() 600 let error = mem::ManuallyDrop::new(error); in new()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/component/ |
| H A D | concurrent.rs | 79 use std::mem::{self, ManuallyDrop, MaybeUninit}; 1127 value: ManuallyDrop<V>, in do_run_concurrent() 1137 unsafe { ManuallyDrop::drop(&mut self.value) } in do_run_concurrent() 1145 value: ManuallyDrop::new(fun(accessor)), in do_run_concurrent()
|
| /wasmtime-44.0.1/crates/wasi-preview1-component-adapter/src/ |
| H A D | lib.rs | 25 use core::mem::{self, ManuallyDrop, MaybeUninit, align_of, forget, size_of}; 1561 let name = ManuallyDrop::new(name); in fd_readdir()
|