rust/src/libcore
Yuki Okushi 9e83df0f69
Rollup merge of #68054 - tspiteri:null-unchecked-as_mut, r=cramertj
doc: add Null-unchecked version section to mut pointer as_mut method

The [`as_ref`](https://doc.rust-lang.org/std/primitive.pointer.html#method.as_ref-1) method already has a *Null-unchecked version* section, its example is a modification of the example in the main `as_ref` section. Similarly the example in this PR is a modification of the example in main [`as_mut`](https://doc.rust-lang.org/std/primitive.pointer.html#method.as_mut) section.

Fixes #68032.
2020-01-10 04:18:43 +09:00
..
array Format the world 2019-12-22 17:42:47 -05:00
benches Format the world 2019-12-22 17:42:47 -05:00
char Minimize unsafety in encode_utf8 2019-12-23 20:46:42 -05:00
convert Use Self instead of $type 2020-01-06 04:33:31 +00:00
fmt Use Self instead of $type 2020-01-06 04:33:31 +00:00
future Revert "core: add IntoFuture trait and support for await" 2019-12-31 19:18:08 -05:00
hash Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
iter Use matches macro in libcore and libstd 2020-01-08 07:10:28 +03:00
macros macros: typo fix 2020-01-06 01:55:24 +00:00
mem Minor: change take() docs grammar to match other docs 2020-01-03 00:40:04 -05:00
num Rollup merge of #67966 - popzxc:core-std-matches, r=Centril 2020-01-09 00:22:10 +01:00
ops Convert collapsed to shortcut reference links 2019-12-26 05:27:55 -08:00
prelude Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
ptr doc: add Null-unchecked version section to mut pointer as_mut method 2020-01-09 14:51:58 +01:00
slice Use NonNull in slice::Iter and slice::IterMut. 2019-12-26 20:18:31 +01:00
str Use matches macro in libcore and libstd 2020-01-08 07:10:28 +03:00
sync Add more nuanced advice about spin_loop_hint 2020-01-05 20:37:22 +01:00
task Use matches macro in libcore and libstd 2020-01-08 07:10:28 +03:00
tests Add Iterator::try_find 2020-01-02 00:59:26 +03:00
unicode Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
alloc.rs Mark Layout::new as const stable 2020-01-09 13:41:43 -05:00
any.rs Format the world 2019-12-22 17:42:47 -05:00
ascii.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
bool.rs Format libcore with rustfmt (including tests and benches) 2019-12-06 20:20:51 -08:00
borrow.rs Format the world 2019-12-22 17:42:47 -05:00
Cargo.toml Move the matches! macro to the prelude 2019-10-23 15:35:36 +02:00
cell.rs Format the world 2019-12-22 17:42:47 -05:00
clone.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
cmp.rs Use matches macro in libcore and libstd 2020-01-08 07:10:28 +03:00
default.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
ffi.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
hint.rs Format libcore with rustfmt (including tests and benches) 2019-12-06 20:20:51 -08:00
internal_macros.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
intrinsics.rs Use issue = "none" instead of "0" in intrinsics 2019-12-25 11:54:55 +01:00
lib.rs Add Iterator::try_find 2020-01-02 00:59:26 +03:00
marker.rs Use Self instead of $type 2020-01-06 04:33:31 +00:00
option.rs Rollup merge of #67966 - popzxc:core-std-matches, r=Centril 2020-01-09 00:22:10 +01:00
panic.rs Format the world 2019-12-22 17:42:47 -05:00
panicking.rs core and std macros and panic internals use panic::Location::caller. 2020-01-04 10:02:17 -08:00
pin.rs Relax the Sized bounds on Pin::map_unchecked(_mut) 2020-01-06 15:41:09 +01:00
raw.rs Fix more tests after revert of rustdoc cfg(test) feature 2019-06-09 18:15:53 +01:00
result.rs Rollup merge of #67966 - popzxc:core-std-matches, r=Centril 2020-01-09 00:22:10 +01:00
time.rs no longer promote non-pattern const functions 2019-12-22 18:37:22 +01:00
tuple.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
unit.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00