rust/src/libcore
kennytm 9a2437c0dc
Rollup merge of #58468 - RalfJung:maybe-uninit-split, r=Centril
split MaybeUninit into several features, expand docs a bit

This splits the `maybe_uninit` feature gate into several:

* `maybe_uninit` for what we will hopefully stabilize soon-ish.
* `maybe_uninit_ref` for creating references into `MaybeUninit`, for which the rules are not yet clear.
* `maybe_uninit_slice` for handling slices of `MaybeUninit`, which needs more API design work.
* `maybe_uninit_array` for creating arrays of `MaybeUninit` using a macro (because we don't have https://github.com/rust-lang/rust/issues/49147 yet).

Is that an okay thing to do? The goal is to help people avoid APIs we do not want to stabilize yet. I used this to make sure rustc itself does not use `get_ref` and `get_mut`.

I also extended the docs to advise against uninitialized integers -- again this is something for which the rules are still being discussed.
2019-02-16 14:11:55 +08:00
..
benches Add fmt benchmarks 2019-01-12 01:54:57 +09:00
char Auto merge of #58051 - SimonSapin:str_escape, r=alexcrichton 2019-02-12 23:30:16 +00:00
fmt Rollup merge of #58272 - fitzgen:num-format-code-size, r=Mark-Simulacrum 2019-02-13 18:12:31 +01:00
future Merging master 2019-02-12 22:46:14 -08:00
hash libs: doc comments 2019-02-10 23:57:25 +00:00
iter libs: doc comments 2019-02-10 23:57:25 +00:00
num Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnik 2019-02-12 19:09:24 +00:00
ops Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnik 2019-02-12 19:09:24 +00:00
prelude Remove licenses 2018-12-25 21:08:33 -07:00
slice Revert "Remove mentions of unstable sort_by_cached key from stable documentation" 2019-02-12 22:26:44 -08:00
str Rollup merge of #58200 - RalfJung:str-as-mut-ptr, r=SimonSapin 2019-02-13 04:37:03 +01:00
sync Add suggestions to deprecation lints 2019-01-30 17:49:04 +01:00
task Merging master 2019-02-12 22:46:14 -08:00
tests review failures in btree, string 2019-02-13 18:21:13 +01:00
unicode Remove licenses 2018-12-25 21:08:33 -07:00
alloc.rs tests: doc comments 2019-02-10 23:42:32 +00:00
any.rs tests: doc comments 2019-02-10 23:42:32 +00:00
array.rs Remove licenses 2018-12-25 21:08:33 -07:00
ascii.rs Remove licenses 2018-12-25 21:08:33 -07:00
borrow.rs Remove licenses 2018-12-25 21:08:33 -07:00
Cargo.toml std: Depend directly on crates.io crates 2018-12-11 21:08:22 -08:00
cell.rs libs: doc comments 2019-02-10 23:57:25 +00:00
clone.rs Auto merge of #57125 - doitian:inconsistent-clone-doc, r=bluss 2019-01-01 20:50:13 +00:00
cmp.rs tests: doc comments 2019-02-10 23:42:32 +00:00
convert.rs Rollup merge of #57856 - lzutao:fix-old-first-edition, r=steveklabnik 2019-02-14 02:41:16 +01:00
default.rs libs: doc comments 2019-02-10 23:57:25 +00:00
ffi.rs libs: doc comments 2019-02-10 23:57:25 +00:00
hint.rs libs: doc comments 2019-02-10 23:57:25 +00:00
internal_macros.rs Move str::escape_* to libcore 2019-02-12 09:55:30 +01:00
intrinsics.rs libs: doc comments 2019-02-10 23:57:25 +00:00
iter_private.rs Remove licenses 2018-12-25 21:08:33 -07:00
lib.rs make Centril happy 2019-02-14 22:31:06 +01:00
macros.rs make Centril happy 2019-02-14 22:31:06 +01:00
marker.rs Rollup merge of #57856 - lzutao:fix-old-first-edition, r=steveklabnik 2019-02-14 02:41:16 +01:00
mem.rs Rollup merge of #58468 - RalfJung:maybe-uninit-split, r=Centril 2019-02-16 14:11:55 +08:00
option.rs libs: doc comments 2019-02-10 23:57:25 +00:00
panic.rs Remove licenses 2018-12-25 21:08:33 -07:00
panicking.rs Remove licenses 2018-12-25 21:08:33 -07:00
pin.rs libs: doc comments 2019-02-10 23:57:25 +00:00
ptr.rs libs: doc comments 2019-02-10 23:57:25 +00:00
raw.rs Remove licenses 2018-12-25 21:08:33 -07:00
result.rs libs: doc comments 2019-02-10 23:57:25 +00:00
time.rs libs: doc comments 2019-02-10 23:57:25 +00:00
tuple.rs Remove licenses 2018-12-25 21:08:33 -07:00
unit.rs Remove licenses 2018-12-25 21:08:33 -07:00