rust/library/core
bors 58e7189650 Auto merge of #83858 - joshtriplett:unsafe-cell-always-inline, r=Mark-Simulacrum
Use `#[inline(always)]` on trivial UnsafeCell methods

UnsafeCell is the standard building block for shared mutable data
structures. UnsafeCell should add zero overhead compared to using raw
pointers directly.

Some reports suggest that debug builds, or even builds at opt-level 1,
may not always be inlining its methods. Mark the methods as
`#[inline(always)]`, since once inlined the methods should result in no
actual code other than field accesses.
2021-04-05 06:21:14 +00:00
..
benches add bench 2021-03-18 00:25:20 +01:00
src Auto merge of #83858 - joshtriplett:unsafe-cell-always-inline, r=Mark-Simulacrum 2021-04-05 06:21:14 +00:00
tests Bump cfgs 2021-04-04 14:57:05 -04:00
Cargo.toml Auto merge of #82271 - Aaron1011:debug-refcell, r=m-ou-se 2021-03-23 04:49:47 +00:00