summary refs log tree commit diff
path: root/library/core/src/mem
AgeCommit message (Expand)AuthorLines
2024-06-04Use inline const instead of unsafe to implement `MaybeUninit::uninit_array()`.Kevin Reid-2/+1
2024-06-04Use inline const instead of unsafe to construct arrays in `MaybeUninit` examp...Kevin Reid-10/+4
2024-05-10Fix typo in ManuallyDrop's documentationInfinixius-1/+1
2024-05-03Rollup merge of #123480 - Nadrieril:impl-all-derefpures, r=compiler-errorsMatthias Krüger-1/+4
2024-04-28Fix #124478 - offset_of! returns a temporaryGeorge Bateman-2/+2
2024-04-05Impl `DerefPure` for more std typesNadrieril-1/+4
2024-03-23Auto merge of #122582 - scottmcm:swap-intrinsic-v2, r=oli-obkbors-57/+3
2024-03-22`swap_simple` no longer needs to be a separate functionScott McMurray-32/+0
2024-03-20step cfgsMark Rousskov-1/+1
2024-03-19[doc]:fix error code exampleheisen-li-3/+3
2024-03-17Let codegen decide when to `mem::swap` with immediatesScott McMurray-25/+3
2024-03-05Implement MaybeUninit::fill{,_with,_from}Andrew Wock-16/+186
2024-02-27safe transmute: revise safety analysisJack Wrenn-4/+5
2024-02-16Auto merge of #116385 - kornelski:maybe-rename, r=Amanieubors-11/+11
2024-02-08Step all bootstrap cfgs forwardMark Rousskov-10/+0
2024-02-08Bump version placeholdersMark Rousskov-2/+2
2024-01-20Auto merge of #111803 - scottmcm:simple-swap-alternative, r=Mark-Simulacrumbors-1/+1
2024-01-19Tweak the threshold for chunked swappingAngelicosPhosphoros-1/+1
2024-01-19Stabilize simple offset_ofGeorge Bateman-8/+6
2024-01-02Make offset_of field parsing use metavariable which handles any spacingGeorge Bateman-0/+10
2023-12-10remove redundant importssurechen-1/+1
2023-11-17only free lifetimes may get erasedlcnr-4/+6
2023-11-15Re-format code with new rustfmtMark Rousskov-4/+1
2023-11-15Bump cfg(bootstrap)sMark Rousskov-4/+1
2023-11-15Substitute version placeholdersMark Rousskov-4/+4
2023-11-11Rename MaybeUninit::write_sliceKornel-11/+11
2023-11-05Auto merge of #117537 - GKFX:offset-of-enum-feature, r=cjgillotbors-0/+1
2023-11-05Auto merge of #116218 - tgross35:const-maybe-uninit-zeroed, r=dtolnaybors-7/+13
2023-11-04Stabilize `const_mem_zeroed`Trevor Gross-1/+2
2023-11-04Stabilize `const_maybe_uninit_zeroed`Trevor Gross-6/+11
2023-11-03cfg_attr offset_of_enum feature in doctestGeorge Bateman-1/+2
2023-11-03Feature gate enums in offset_ofGeorge Bateman-1/+1
2023-11-03Auto merge of #117510 - elichai:patch-3, r=cuviperbors-0/+1
2023-11-02Update mod.rsJoshua Liebow-Feeser-0/+2
2023-11-02Update mod.rsJoshua Liebow-Feeser-2/+1
2023-11-02Remove trailing spaceJoshua Liebow-Feeser-1/+1
2023-11-02Expand mem::offset_of! docsJoshua Liebow-Feeser-2/+62
2023-11-02Add track_caller to transmute_copyElichai Turkel-0/+1
2023-10-31Update based on wesleywiser reviewGeorge Bateman-2/+2
2023-10-31Update MIR tests for offset_ofGeorge Bateman-0/+1
2023-10-31Enums in offset_of: update based on est31, scottmcm & llogiq reviewGeorge Bateman-2/+8
2023-10-28Auto merge of #116240 - dtolnay:constdiscriminant, r=thomccbors-1/+1
2023-10-26Add comment to mem::replace to explain why it's not implemented via mem::swapCarter Hunt Fogelman-0/+4
2023-10-20s/generator/coroutine/Oli Scherer-1/+1
2023-10-14Auto merge of #116407 - Mark-Simulacrum:bootstrap-bump, r=onur-ozkanbors-1/+1
2023-10-13Auto merge of #116233 - DaniPopes:stabilize-const_maybe_uninit_assume_init_re...bors-1/+4
2023-10-06Rollup merge of #116329 - RalfJung:swap-comments, r=scottmcmGuillaume Gomez-5/+4
2023-10-06Rollup merge of #116198 - Jarcho:diag_items, r=WaffleLapkinGuillaume Gomez-0/+1
2023-10-06Rollup merge of #115522 - joshlf:patch-8, r=scottmcmGuillaume Gomez-6/+6
2023-10-05Add more diagnostic items for clippyJason Newcomb-0/+1