| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-01-28 | Auto merge of #68234 - CAD97:slice-from-raw-parts, r=KodrAus | bors | -6/+5 | |
| Stabilize ptr::slice_from_raw_parts[_mut] Closes #36925, the tracking issue. Initial impl: #60667 r? @rust-lang/libs In addition to stabilizing, I've adjusted the example of `ptr::slice_from_raw_parts` to use `slice_from_raw_parts` instead of `slice_from_raw_parts_mut`, which was unnecessary for the example as written. | ||||
| 2020-01-18 | get rid of real_drop_in_place again | Ralf Jung | -12/+2 | |
| 2020-01-15 | Fix incorrect slice->ptr conversion in slice_from_raw_parts docs | CAD97 | -1/+1 | |
| 2020-01-14 | Stabilize ptr::slice_from_raw_parts[_mut] | CAD97 | -6/+5 | |
| 2020-01-09 | doc: add Null-unchecked version section to mut pointer as_mut method | Trevor Spiteri | -0/+14 | |
| The as_ref method already has a Null-unchecked version section, its example is a modification of the example in the main as_ref section. Similarly the example in this commit is a modification of the example in main as_mut section. | ||||
| 2019-12-27 | Clean up const-hack from #63810 | jumbatm | -4/+1 | |
| 2019-12-22 | Format the world | Mark Rousskov | -88/+108 | |
| 2019-12-22 | Rollup merge of #67480 - rossmacarthur:fix-41260-avoid-issue-0-part-2, r=Centril | Mazdak Farrokhzad | -17/+17 | |
| Require issue = "none" over issue = "0" in unstable attributes These changes make the use of `issue = "none"` required in unstable attributes throughout the compiler. Notes: - #66299 is now in beta so `issue = "none"` is accepted. - The `tidy` tool now fails on `issue = "0"`. - Tests that used `issue = "0"` were changed to use `issue = "none"`, except for _one_ that asserts `issue = "0"` can still be used. - The compiler still allows `issue = "0"` because some submodules require it, this could be disallowed once these are updated. Resolves #41260 r? @varkor | ||||
| 2019-12-21 | Rollup merge of #67462 - DutchGhost:const_slice_from_raw_parts, r=dtolnay | Mazdak Farrokhzad | -2/+4 | |
| Make ptr::slice_from_raw_parts a const fn available under a feature flag A first step in the direction of https://github.com/rust-lang/rust/issues/67456 . This makes `ptr::slice_from_raw_parts` and `ptr::slice_from_raw_parts_mut` available as a const fn under a feature flag. | ||||
| 2019-12-21 | Require issue = "none" over issue = "0" in unstable attributes | Ross MacArthur | -17/+17 | |
| 2019-12-20 | Make ptr::slice_from_raw_parts a const fn available under a feature flag | Dodo | -2/+4 | |
| 2019-12-19 | Split up ptr/mod.rs in libcore, one with implementation detail for const ptr ↵ | Christoph Schmidler | -1691/+1685 | |
| and the other with mut ptr | ||||
| 2019-12-18 | Propagate cfg bootstrap | Mark Rousskov | -30/+10 | |
| 2019-12-13 | Require stable/unstable annotations for the constness of all stable ↵ | Oliver Scherer | -2/+30 | |
| functions with a `const` modifier | ||||
| 2019-12-06 | Format libcore with rustfmt (including tests and benches) | David Tolnay | -91/+143 | |
| 2019-12-06 | Suppress libcore/ptr/mod.rs filelength lint | David Tolnay | -0/+1 | |
| 2019-11-29 | Rollup merge of #66379 - CreepySkeleton:patch-1, r=RalfJung | Ralf Jung | -14/+24 | |
| Rephrase docs in for ptr These methods can be supplied with NULL just fine, this is the whole point of `Option<&T>` return type. | ||||
| 2019-11-27 | Use intra-doc links | CreepySkeleton | -2/+2 | |
| 2019-11-27 | Elaborate on std::ptr::{as_ref,as_mod} and clarify docs | CreepySkeleton | -14/+24 | |
| 2019-11-26 | Format libcore with rustfmt | David Tolnay | -30/+23 | |
| This commit applies rustfmt with default settings to files in src/libcore *that are not involved in any currently open PR* to minimize merge conflicts. The list of files involved in open PRs was determined by querying GitHub's GraphQL API with this script: https://gist.github.com/dtolnay/aa9c34993dc051a4f344d1b10e4487e8 With the list of files from the script in `outstanding_files`, the relevant commands were: $ find src/libcore -name '*.rs' | xargs rustfmt --edition=2018 $ rg libcore outstanding_files | xargs git checkout -- Repeating this process several months apart should get us coverage of most of the rest of libcore. | ||||
| 2019-11-12 | Snap cfgs | Mark Rousskov | -16/+0 | |
| 2019-11-07 | Rollup merge of #63793 - oli-obk:🧹, r=dtolnay | Mazdak Farrokhzad | -0/+6 | |
| Have tidy ensure that we document all `unsafe` blocks in libcore cc @rust-lang/libs I documented a few and added ignore flags on the other files. We can incrementally document the files, but won't regress any files this way. | ||||
| 2019-11-06 | Have tidy ensure that we document all `unsafe` blocks in libcore | Oliver Scherer | -0/+6 | |
| 2019-11-05 | Apply suggestions from code review | Ralf Jung | -2/+2 | |
| Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> | ||||
| 2019-11-05 | expand slice from_raw_part docs | Ralf Jung | -0/+4 | |
| 2019-11-05 | link from raw slice creation methods to safety requirements | Ralf Jung | -5/+14 | |
| 2019-11-02 | Auto merge of #63810 - oli-obk:const_offset_from, r=RalfJung,nikic | bors | -1/+17 | |
| Make <*const/mut T>::offset_from `const fn` This reenables offset_of cc @mjbshaw after https://github.com/rust-lang/rust/pull/63075 broke it | ||||
| 2019-10-11 | Make <*const/mut T>::offset_from `const fn` | Oliver Scherer | -1/+17 | |
| 2019-10-02 | Inline `ptr::null(_mut)` even in debug builds | Lzu Tao | -2/+2 | |
| 2019-10-01 | Remove unneeded `fn main` blocks from docs | Lzu Tao | -25/+23 | |
| 2019-09-06 | A few cosmetic improvements to code & comments in liballoc and libcore | Alexander Regueiro | -3/+3 | |
| 2019-08-17 | Doc nit | Simon Sapin | -1/+1 | |
| Co-Authored-By: Ralf Jung <post@ralfj.de> | ||||
| 2019-08-17 | Doc nits | Simon Sapin | -1/+1 | |
| Co-Authored-By: Ralf Jung <post@ralfj.de> | ||||
| 2019-08-16 | Add new_uninit and assume_init on Box, Rc, and Arc | Simon Sapin | -0/+8 | |
| 2019-08-12 | Rollup merge of #63297 - RalfJung:ptr_offset, r=dtolnay | Mazdak Farrokhzad | -34/+128 | |
| Improve pointer offset method docs Cc @rkruppe @gnzlbg | ||||
| 2019-08-05 | improve wrapping_ docs | Ralf Jung | -26/+112 | |
| 2019-08-05 | note about stack-allocated variables being allocated objects | Ralf Jung | -8/+16 | |
| 2019-08-05 | improve align_offset docs | Ralf Jung | -4/+8 | |
| 2019-08-02 | Fix typos in doc comments. | Bruce Mitchener | -2/+2 | |
| 2019-07-30 | Rollup merge of #61965 - phil-opp:patch-4, r=scottmcm | Mazdak Farrokhzad | -2/+2 | |
| Remove mentions of removed `offset_to` method from `align_offset` docs The `offset_to` method was deleted in https://github.com/rust-lang/rust/pull/52814. The replacement for the removed method is `wrapping_offset_from`. However, neither method takes an `usize` as argument, so I don't think that it makes sense to mention them. | ||||
| 2019-07-28 | Deny `unused_lifetimes` through rustbuild | Vadim Petrochenkov | -1/+1 | |
| 2019-07-22 | Rollup merge of #62788 - ↵ | Mazdak Farrokhzad | -2/+2 | |
| fakenine:normalize_use_of_backticks_compiler_messages_p9, r=Centril normalize use of backticks in compiler messages for libcore/ptr https://github.com/rust-lang/rust/issues/60532 | ||||
| 2019-07-18 | normalize use of backticks in compiler messages for libcore/ptr | Samy Kacimi | -2/+2 | |
| https://github.com/rust-lang/rust/issues/60532 | ||||
| 2019-07-17 | Refer to `add` method instead of `offset` | Philipp Oppermann | -2/+2 | |
| The `align_offset` method returns an `usize`, so using `add` makes more sense than using `offset`, which takes an `isize`. | ||||
| 2019-07-16 | Stabilize <*mut _>::cast and <*const _>::cast | Simon Sapin | -2/+2 | |
| FCP: https://github.com/rust-lang/rust/issues/60602#issuecomment-511146402 | ||||
| 2019-07-09 | doc(ptr): add example for {read,write}_unaligned | Freyskeyd | -0/+32 | |
| Signed-off-by: Freyskeyd <simon.paitrault@gmail.com> | ||||
| 2019-07-05 | Rollup merge of #62323 - Centril:clarify-read-unaligned, r=RalfJung | Mazdak Farrokhzad | -35/+53 | |
| Clarify unaligned fields in ptr::{read,write}_unaligned r? @RalfJung | ||||
| 2019-07-04 | Switch master to 1.38 | Mark Rousskov | -1/+1 | |
| 2019-07-04 | ptr::{read,write}_unaligned: use no_run and reword slightly. | Mazdak Farrokhzad | -4/+4 | |
| 2019-07-04 | Clarify unaligned fields in ptr::read_unaligned. | Mazdak Farrokhzad | -35/+53 | |
