| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2019-03-26 | adjust MaybeUninit API to discussions | Ralf Jung | -38/+72 | |
| uninitialized -> uninit into_initialized -> assume_init read_initialized -> read set -> write | ||||
| 2019-03-11 | Improvements to comments in libstd, libcore, liballoc. | Alexander Regueiro | -3/+6 | |
| 2019-03-09 | Rollup merge of #58660 - RalfJung:maybe-uninit, r=Centril | Mazdak Farrokhzad | -29/+224 | |
| MaybeUninit: add read_initialized, add examples This adds a new `read_initialized` method, similar to suggestions by @Amanieu and @shepmaster. I also added examples to this and other methods. | ||||
| 2019-03-06 | Apply suggestions from code review | Ralf Jung | -1/+1 | |
| 2019-03-06 | Apply suggestions from code review | Mazdak Farrokhzad | -3/+3 | |
| Co-Authored-By: RalfJung <post@ralfj.de> | ||||
| 2019-02-28 | Update src/libcore/mem.rs | Mazdak Farrokhzad | -1/+1 | |
| Co-Authored-By: RalfJung <post@ralfj.de> | ||||
| 2019-02-27 | improve readability | Ralf Jung | -1/+1 | |
| 2019-02-27 | ManuallyDrop != MaybeUninit | Ralf Jung | -0/+8 | |
| 2019-02-25 | heading # Unsafety => # Safety in stdlib docs. | Mazdak Farrokhzad | -3/+3 | |
| 2019-02-24 | prefer into_initialized over read_initialited | Ralf Jung | -0/+3 | |
| 2019-02-24 | show how to set with ptr::write | Ralf Jung | -4/+5 | |
| 2019-02-24 | remark that the rules are unfinished | Ralf Jung | -0/+4 | |
| 2019-02-23 | fix link | Ralf Jung | -0/+2 | |
| 2019-02-23 | expand type name | Ralf Jung | -17/+17 | |
| 2019-02-23 | Apply suggestions from code review | Mazdak Farrokhzad | -18/+19 | |
| Co-Authored-By: RalfJung <post@ralfj.de> | ||||
| 2019-02-22 | make MaybeUninit Copy | Ralf Jung | -0/+10 | |
| 2019-02-22 | examples for MaybeUninit::zeroed | Ralf Jung | -0/+29 | |
| 2019-02-22 | examples for as[_mut]_ptr | Ralf Jung | -0/+53 | |
| 2019-02-22 | misc tweaks | Ralf Jung | -12/+22 | |
| 2019-02-22 | also add examples to MaybeUninit::into_initialized | Ralf Jung | -1/+28 | |
| 2019-02-22 | Add MaybeUninit::read_uninitialized | Ralf Jung | -0/+55 | |
| Also remove a no-longer accurate comments | ||||
| 2019-02-18 | Auto merge of #58373 - RalfJung:maybe-uninit, r=gnzlbg | bors | -8/+0 | |
| update stdsimd and remove now-unused MaybeUninit::into_inner That's a huge diff for stdsimd... Cc @gnzlbg @alexcrichton | ||||
| 2019-02-16 | Rollup merge of #58468 - RalfJung:maybe-uninit-split, r=Centril | kennytm | -27/+49 | |
| 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-14 | split MaybeUninit into several features, expand docs a bit | Ralf Jung | -27/+49 | |
| 2019-02-14 | remove MaybeUninit::into_inner | Ralf Jung | -8/+0 | |
| 2019-02-14 | Rollup merge of #57856 - lzutao:fix-old-first-edition, r=steveklabnik | Mazdak Farrokhzad | -1/+1 | |
| Convert old first edition links to current edition one r? @steveklabnik | ||||
| 2019-02-13 | Convert old doc links to current edition | Lzu Tao | -1/+1 | |
| Use footnote style to bypass the tidy check | ||||
| 2019-02-10 | libs: doc comments | Alexander Regueiro | -20/+24 | |
| 2019-02-10 | tests: doc comments | Alexander Regueiro | -2/+2 | |
| 2019-02-10 | Auto merge of #58129 - RalfJung:maybe-uninit, r=cramertj | bors | -7/+53 | |
| MaybeUninit: some docs, rename into_inner -> into_initialized, return &mut from set | ||||
| 2019-02-10 | it is okay not to use into_inner | Ralf Jung | -0/+1 | |
| 2019-02-07 | Rollup merge of #57848 - jrvanwhy:transmute-export-doc, r=QuietMisdreavus | Guillaume Gomez | -0/+1 | |
| Generate a documentation page for core::mem::transmute. In `#[no_std]` environments, `std::mem::transmute` is unavailable. Searching for "core transmute" online only pulls up `core::intrinsics::transmute`, which is behind the (unstable) `core_intrinsics` feature flag. Users wishing to use transmute in `#[no_std]` environments typically should use `core::mem::transmute` instead, as it is stable. This documentation makes `core::mem::transmute` discoverable. | ||||
| 2019-02-06 | fix doctests | Ralf Jung | -1/+2 | |
| 2019-02-05 | fix doctest | Ralf Jung | -2/+2 | |
| 2019-02-04 | typos | Ralf Jung | -2/+2 | |
| 2019-02-03 | make set return a mutable reference | Ralf Jung | -1/+4 | |
| 2019-02-03 | expand as_[mut_]ptr docs a bit | Ralf Jung | -4/+4 | |
| 2019-02-03 | some type-level docs for MaybeUninit; rename into_inner -> into_initialized | Ralf Jung | -2/+43 | |
| 2019-01-28 | rename first_mut_ptr -> first_ptr_mut | Ralf Jung | -1/+1 | |
| 2019-01-28 | fix typos, improve docs | Ralf Jung | -2/+2 | |
| 2019-01-28 | libcore: avoid mem::uninitialized and raw ptr casts | Ralf Jung | -0/+14 | |
| 2019-01-27 | Auto merge of #57765 - Mark-Simulacrum:bootstrap-bump, r=alexcrichton | bors | -3/+0 | |
| Bump bootstrap compiler to 1.33 beta r? @alexcrichton or @pietroalbini cc @rust-lang/release | ||||
| 2019-01-26 | Remove lexical scope examples from std::mem::drop | Alex Macleod | -28/+1 | |
| The example no longer produces an error in the 2018 edition | ||||
| 2019-01-26 | Bump bootstrap compiler to 1.33 beta | Mark Rousskov | -3/+0 | |
| 2019-01-24 | Instead of adding a paragraph mentioning std::mem::transmute and ↵ | Johnathan Van Why | -0/+1 | |
| core::mem::transmute, create documentation pages for them. This renders them discoverable via search. I removed the mention of the exports in the transmute documentation, but can re-add it if desired. | ||||
| 2019-01-21 | un-deprecate mem::zeroed | Ralf Jung | -1/+0 | |
| 2018-12-27 | panic when calling MaybeUninhabited::into_inner on uninhabited type | Ralf Jung | -0/+6 | |
| 2018-12-25 | Remove licenses | Mark Rousskov | -10/+0 | |
| 2018-12-23 | Rollup merge of #56970 - Firstyear:mem_uninit_doc_ptr_drop, r=Manishearth | kennytm | -0/+39 | |
| Mem uninit doc ptr drop Extend the mem::uninitialized documentation to account for partially initialized arrays and how to correctly handle these. These are used in some datastructures (trees for example) or in FFI. r? @Manishearth | ||||
| 2018-12-19 | Fix tidy error | William Brown | -1/+2 | |
