summaryrefslogtreecommitdiff
path: root/library/core/src/mem
Commit message (Expand)AuthorAgeFilesLines
* Allow the drop_copy lint in some library examplesUrgau2023-05-101-0/+1
* Rollup merge of #110694 - est31:builtin, r=petrochenkovDylan DPC2023-05-091-3/+3
|\
| * Migrate offset_of from a macro to builtin # syntaxest312023-05-051-3/+3
* | clean up transmutes in coreLukas Markeffsky2023-05-061-2/+2
|/
* Add `intrinsics::transmute_unchecked`Scott McMurray2023-04-221-7/+3
* minor tweaksDrMeepster2023-04-211-1/+1
* offset_ofDrMeepster2023-04-211-0/+42
* rm const traits in libcoreDeadbeef2023-04-162-8/+4
* Rollup merge of #110347 - est31:size_of_links, r=jyn514Yuki Okushi2023-04-161-6/+13
|\
| * Add intra-doc links to size_of_* functionsest312023-04-151-6/+13
* | Improve safe transmute error reportingBryan Garza2023-04-131-4/+0
* | Avoid some manual slice length calculationScott McMurray2023-04-071-12/+4
|/
* stage-step cfgsMark Rousskov2023-01-301-1/+0
* Rename `assert_uninit_valid` intrinsicNilstrieb2022-12-131-1/+2
* fix broken link fragmentLukas Markeffsky2022-11-261-1/+1
* explain how to get the discriminant out of a `#[repr(T)] enum`Lukas Markeffsky2022-11-261-1/+60
* Auto merge of #104054 - RalfJung:byte-provenance, r=oli-obkbors2022-11-151-4/+1
|\
| * remove no-longer-needed work-arounds from the standard libraryRalf Jung2022-11-061-4/+1
* | Rollup merge of #104332 - Elarcis:maybe_uninit_doc_fix, r=m-ou-seMatthias Krüger2022-11-141-2/+2
|\ \
| * | Fixed some `_i32` notation in `maybe_uninit`’s docElarcis2022-11-121-2/+2
| |/
* | Rollup merge of #104308 - scottmcm:no-more-validalign, r=thomccGuillaume Gomez2022-11-121-5/+0
|\ \ | |/ |/|
| * Remove the old `ValidAlign` nameScott McMurray2022-11-111-5/+0
* | Rollup merge of #100006 - jyn514:update-copy, r=dtolnayMatthias Krüger2022-10-301-1/+1
|\ \
| * | Make `core::mem::copy` constJoshua Nelson2022-09-141-1/+1
* | | MaybeUninit: use assume_init_drop() in the partially initialized array exampleAndrew Tribick2022-10-231-2/+1
* | | Adjust `transmute{,_copy}` to be clearer about which of `T` and `U` is input ...Thom Chiovoloni2022-10-191-16/+19
* | | Make transpose const and inlineAlex Saveau2022-10-161-2/+4
| |/ |/|
* | Add MaybeUninit array transpose implsAlex Saveau2022-10-151-0/+37
* | more dupe word typosRageking82022-10-141-1/+1
* | Rollup merge of #102072 - scottmcm:ptr-alignment-type, r=thomccYuki Okushi2022-10-102-266/+4
|\ \
| * | Add `ptr::Alignment` typeScott McMurray2022-09-202-266/+4
| |/
* | remove cfg(bootstrap)Pietro Albini2022-09-261-2/+2
* | Add some more documentationScott McMurray2022-09-241-0/+26
* | Make ZST checks in core/alloc more readableScott McMurray2022-09-221-0/+15
|/
* Make `const_eval_select` a real intrinsicDeadbeef2022-09-041-1/+1
* Auto merge of #100726 - jswrenn:transmute, r=oli-obkbors2022-09-041-12/+76
|\
| * safe transmute: use `Assume` struct to provide analysis optionsJack Wrenn2022-08-221-12/+76
* | Re-add some justification52252252022-08-261-0/+5
* | Creating uninitialized integers is UB52252252022-08-262-11/+3
* | Remove out-of-context comment in `mem::MaybeUninit` documentationThiago Trannin2022-08-221-5/+2
|/
* Adjust cfgsMark Rousskov2022-08-121-1/+1
* Auto merge of #99174 - scottmcm:reoptimize-layout-array, r=joshtriplettbors2022-08-101-1/+6
|\
| * Re-optimize `Layout::array`Scott McMurray2022-07-131-1/+6
* | Auto merge of #92268 - jswrenn:transmute, r=oli-obkbors2022-08-022-0/+47
|\ \
| * | safe transmute: reference tracking issueJack Wrenn2022-07-272-3/+3
| * | safe transmute: add `rustc_on_unimplemented` to `BikeshedIntrinsicFrom`Jack Wrenn2022-07-271-0/+4
| * | Initial (incomplete) implementation of transmutability trait.Jack Wrenn2022-07-272-0/+43
* | | Auto merge of #99182 - RalfJung:mitigate-uninit, r=scottmcmbors2022-07-281-1/+11
|\ \ \ | |/ / |/| |
| * | mention mitigation in the docsRalf Jung2022-07-121-0/+2
| * | mem::uninitialized: mitigate many incorrect uses of this functionRalf Jung2022-07-121-1/+9