std::sync::atomic::spin_loop_hint is deprecated, so loom should provide the non-deprecated replacement. It just calls the deprecated version though.
I provided unreachable_unchecked too, even though it's not exactlyloom's wheelhouse, but it could help catch some UB, and lets users potentially reduce the amount of cfg special-casing they need.
std::sync::atomic::spin_loop_hint
is deprecated, so loom should provide the non-deprecated replacement. It just calls the deprecated version though.I provided
unreachable_unchecked
too, even though it's not exactlyloom
's wheelhouse, but it could help catch some UB, and lets users potentially reduce the amount ofcfg
special-casing they need.