Sha256: 8fa74d2e0da6199e693b1b2d68aba6d80bff60dd599d51bef2dcd8ea77b1ffff
Contents?: true
Size: 638 Bytes
Versions: 2
Compression:
Stored size: 638 Bytes
Contents
// FIXME: Branch prediction hint. This is currently only available on nightly // but it consistently improves performance by 10-15%. #[cfg(not(feature = "nightly"))] pub(crate) use core::convert::{identity as likely, identity as unlikely}; #[cfg(feature = "nightly")] pub(crate) use core::intrinsics::{likely, unlikely}; // FIXME: use strict provenance functions once they are stable. // Implement it with a transmute for now. #[inline(always)] #[allow(clippy::useless_transmute)] // clippy is wrong, cast and transmute are different here pub(crate) fn invalid_mut<T>(addr: usize) -> *mut T { unsafe { core::mem::transmute(addr) } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wasmtime-29.0.0 | ./ext/cargo-vendor/hashbrown-0.15.2/src/util.rs |
wasmtime-28.0.0 | ./ext/cargo-vendor/hashbrown-0.15.2/src/util.rs |