about summary refs log tree commit diff
path: root/library/core/src/mem
AgeCommit message (Expand)AuthorLines
2022-09-04Make `const_eval_select` a real intrinsicDeadbeef-1/+1
2022-09-04Auto merge of #100726 - jswrenn:transmute, r=oli-obkbors-12/+76
2022-08-26Re-add some justification5225225-0/+5
2022-08-26Creating uninitialized integers is UB5225225-11/+3
2022-08-22Remove out-of-context comment in `mem::MaybeUninit` documentationThiago Trannin-5/+2
2022-08-22safe transmute: use `Assume` struct to provide analysis optionsJack Wrenn-12/+76
2022-08-12Adjust cfgsMark Rousskov-1/+1
2022-08-10Auto merge of #99174 - scottmcm:reoptimize-layout-array, r=joshtriplettbors-1/+6
2022-08-02Auto merge of #92268 - jswrenn:transmute, r=oli-obkbors-0/+47
2022-07-28Auto merge of #99182 - RalfJung:mitigate-uninit, r=scottmcmbors-1/+11
2022-07-27safe transmute: reference tracking issueJack Wrenn-3/+3
2022-07-27safe transmute: add `rustc_on_unimplemented` to `BikeshedIntrinsicFrom`Jack Wrenn-0/+4
2022-07-27Initial (incomplete) implementation of transmutability trait.Jack Wrenn-0/+43
2022-07-26Make `transmute_copy` docs read betterasquared31415-1/+1
2022-07-24add miri-track-caller to some intrinsic-exposing methodsRalf Jung-0/+1
2022-07-18Rollup merge of #98839 - 5225225:assert_transmute_copy_size, r=thomccDylan DPC-0/+2
2022-07-13Re-optimize `Layout::array`Scott McMurray-1/+6
2022-07-12mention mitigation in the docsRalf Jung-0/+2
2022-07-12mem::uninitialized: mitigate many incorrect uses of this functionRalf Jung-1/+9
2022-07-10Take advantage of known-valid-align in layout.rsChristopher Durham-1/+10
2022-07-03Add size assert in transmute_copy5225225-0/+2
2022-06-20Rollup merge of #95534 - jyn514:std-mem-copy, r=joshtriplettYuki Okushi-0/+22
2022-06-19Add `core::mem::copy` to complement `core::mem::drop`.Joshua Nelson-0/+22
2022-06-17Rollup merge of #97675 - nvzqz:unsized-needs-drop, r=dtolnayYuki Okushi-1/+1
2022-06-10Use relative links instead of linking to doc.rust-lang.org when possibleGuillaume Gomez-1/+1
2022-06-03Make `std::mem::needs_drop` accept `?Sized`Nikolai Vazquez-1/+1
2022-05-14Implement `Hash` for `core::alloc::Layout`Deadbeef-1/+8
2022-05-09Auto merge of #95960 - jhpratt:remove-rustc_deprecated, r=compiler-errorsbors-3/+3
2022-04-15MaybeUninit array cleanupltdk-8/+13
2022-04-14Remove use of `#[rustc_deprecated]`Jacob Pratt-3/+3
2022-04-09Rollup merge of #95361 - scottmcm:valid-align, r=Mark-SimulacrumDylan DPC-0/+246
2022-04-08Make non-power-of-two alignments a validity error in `Layout`Scott McMurray-0/+246
2022-04-03core: document that the align_of* functions return the alignment in bytesAdam Sandberg Ericsson-5/+8
2022-03-31Adjust MaybeUninit feature names to avoid changing unstable oneDavid Tolnay-4/+4
2022-03-31Adjust feature names that disagree on const stabilization versionDavid Tolnay-4/+4
2022-03-28Rollup merge of #88375 - joshlf:patch-3, r=dtolnayDylan DPC-5/+6
2022-03-04Add #![allow(unexpected_cfgs)] in preparation of global --check-cfgLoïc BRANSTETT-0/+1
2022-02-26For MIRI, cfg out the swap logic from 94212Scott McMurray-5/+22
2022-02-21Stop manually SIMDing in swap_nonoverlappingScott McMurray-3/+42
2022-01-19Add MaybeUninit::as_bytesAmanieu d'Antras-1/+124
2022-01-17Stabilize vec_spare_capacityAmanieu d'Antras-2/+2
2022-01-11Partially stabilize `maybe_uninit_extra`Miguel Ojeda-6/+4
2022-01-04Add note about non_exhaustive to variant_countMark Rousskov-0/+4
2021-12-17Add space and 2 grave accentsr00ster-2/+2
2021-12-16Rollup merge of #91796 - not-my-profile:fix-const_manually_drop-since, r=kennytmMatthias Krüger-2/+2
2021-12-13Make `MaybeUninit::zeroed` `const`woppopo-1/+2
2021-12-11Fix since attribute for const_manually_drop featureMartin Fischer-2/+2
2021-11-30Apply cfg-bootstrap switchMark Rousskov-1/+0
2021-11-28Stabilize some `MaybeUninit` behavior as constJacob Pratt-5/+6
2021-10-30Add #[must_use] to mem/ptr functionsJohn Kugelman-0/+13