about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-04-05 06:21:14 +0000
committerbors <bors@rust-lang.org>2021-04-05 06:21:14 +0000
commit58e71896506edb701f276158bd2f47e8788a1133 (patch)
tree9cde6ac1b3496550920bbe9d32b98371be862e0f /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentb1b0a1597c40b55b81e5b95ea5fc825a1287b2bb (diff)
parent37498a19dedb4105f8800a7cc2473803fd4bbccf (diff)
downloadrust-58e71896506edb701f276158bd2f47e8788a1133.tar.gz
rust-58e71896506edb701f276158bd2f47e8788a1133.zip
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions