Files
arrayvec
cfg_if
crossbeam_deque
crossbeam_epoch
crossbeam_utils
either
fid_rs
fid
internal_data_structure
lazy_static
libc
louds_rs
memoffset
nodrop
num_cpus
rayon
collections
compile_fail
iter
chain.rschunks.rscloned.rsempty.rsenumerate.rsextend.rsfilter.rsfilter_map.rsfind.rsflat_map.rsflatten.rsfold.rsfor_each.rsfrom_par_iter.rsinspect.rsinterleave.rsinterleave_shortest.rsintersperse.rslen.rsmap.rsmap_with.rsmod.rsnoop.rsonce.rspar_bridge.rsproduct.rsreduce.rsrepeat.rsrev.rsskip.rssplitter.rssum.rstake.rstry_fold.rstry_reduce.rstry_reduce_with.rsunzip.rsupdate.rswhile_some.rszip.rszip_eq.rs
slice
rayon_core
compile_fail
join
scope
sleep
spawn
thread_pool
scopeguard
>
1 2 3 4 5 6 7 8 9 10
use std::mem; pub fn leak<T>(v: T) -> &'static T { unsafe { let b = Box::new(v); let p: *const T = &*b; mem::forget(b); // leak our reference, so that `b` is never freed &*p } }