rust/library/core/src
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
..
alloc Fix const stability since versions. 2021-03-15 14:39:18 +00:00
array Use iter::zip in library/ 2021-03-26 09:32:29 -07:00
char Update char::escape_debug_ext to handle different escapes in strings vs. chars 2021-03-26 11:23:51 +03:00
convert FloatToInit: Replacing round_unchecked_to --> to_int_unchecked 2021-03-02 12:38:22 -08:00
fmt Rollup merge of #82917 - cuviper:iter-zip, r=m-ou-se 2021-03-27 20:37:07 +01:00
future Rename #[doc(spotlight)] to #[doc(notable_trait)] 2021-03-15 13:59:54 -07:00
hash Bump cfgs 2021-04-04 14:57:05 -04:00
iter Rollup merge of #81619 - SkiFire13:resultshunt-inplace, r=the8472 2021-04-04 19:19:59 +02:00
macros Bump cfgs 2021-04-04 14:57:05 -04:00
mem addr_of_mut: add example for creating a pointer to uninit data 2021-04-03 19:25:11 +02:00
num Add escape_default method to u8 and [u8] 2021-03-28 17:38:25 -04:00
ops Bump cfgs 2021-04-04 14:57:05 -04:00
prelude Bump cfgs 2021-04-04 14:57:05 -04:00
ptr Auto merge of #83864 - Dylan-DPC:rollup-78an86n, r=Dylan-DPC 2021-04-05 01:26:57 +00:00
slice Bump cfgs 2021-04-04 14:57:05 -04:00
str Update char::escape_debug_ext to handle different escapes in strings vs. chars 2021-03-26 11:23:51 +03:00
stream Remove Stream::next 2021-01-23 16:54:56 +01:00
sync Fix const stability since versions. 2021-03-15 14:39:18 +00:00
task stabilize the poll_map feature 2021-01-13 14:51:27 +10:00
unicode Add a check for ASCII characters in to_upper and to_lower 2021-02-26 11:39:36 -06:00
any.rs Fix use of bare trait objects everywhere 2021-03-18 02:18:58 +03:00
ascii.rs Fixed some intra-docs links in library/core 2020-09-18 07:49:29 +08:00
bool.rs Stabilise then 2020-11-22 13:45:14 +00:00
borrow.rs Fix borrow and deref 2021-03-03 11:23:29 +01:00
cell.rs Use #[inline(always)] on trivial UnsafeCell methods 2021-04-04 11:55:13 -07:00
clone.rs Fix core tests 2021-03-03 11:22:49 +01:00
cmp.rs Optimize PartialOrd le 2021-04-04 20:37:48 +03:00
default.rs Add diagnostic item to Default trait 2021-03-04 10:14:48 -08:00
ffi.rs Convert primitives to use intra-doc links 2021-02-25 20:31:53 -05:00
hint.rs Fixed documentation error 2021-01-03 19:54:54 +02:00
internal_macros.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
intrinsics.rs Auto merge of #82122 - bstrie:dep4real, r=dtolnay 2021-03-17 19:39:03 +00:00
lazy.rs Capitalize safety comments 2020-09-08 22:26:44 -04:00
lib.rs Bump cfgs 2021-04-04 14:57:05 -04:00
marker.rs Auto merge of #77893 - petertodd:2020-impl-default-for-phantompinned, r=dtolnay 2020-11-23 07:00:30 +00:00
option.rs Remove Option::{unwrap_none, expect_none}. 2021-03-14 12:54:34 +01:00
panic.rs Implement new panic!() behaviour for Rust 2021. 2021-01-25 13:48:11 +01:00
panicking.rs Fix panic message of assert_failed_inner 2021-03-13 18:50:43 +08:00
pin.rs Remove many unnecessary manual link resolves from library 2020-12-31 11:54:32 -08:00
primitive.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
raw.rs Use intra-doc-links in core::{raw, ffi, pin} 2020-08-22 22:25:27 +02:00
result.rs Add Result::into_err where the Ok variant can never happen 2021-03-23 21:24:26 +01:00
time.rs Rollup merge of #81465 - joshtriplett:duration-formatting-documentation, r=m-ou-se 2021-03-14 13:07:27 +09:00
tuple.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
unit.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00