| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2018-12-25 | Remove licenses | Mark Rousskov | -39/+0 | |
| 2018-12-17 | deny intra-doc link resolution failures in libstd | Andy Russell | -0/+2 | |
| 2018-12-07 | Various minor/cosmetic improvements to code | Alexander Regueiro | -13/+14 | |
| 2018-12-06 | Fix a stutter in the docs for slice::exact_chunks | Chris Barrick | -2/+1 | |
| 2018-11-23 | use MaybeUninit in core::slice::rotate | Ralf Jung | -9/+3 | |
| Code by @japaric, I just split it into individual commits | ||||
| 2018-11-23 | use MaybeUninit in core::slice::sort | Ralf Jung | -7/+7 | |
| Code by @japaric, I just split it into individual commits | ||||
| 2018-11-22 | Auto merge of #53918 - Havvy:doc-sort-by, r=GuillaumeGomez | bors | -0/+16 | |
| Doc total order requirement of sort(_unstable)_by I took the definition of what a total order is from the Ord trait docs. I specifically put "elements of the slice" because if you have a slice of f64s, but know none are NaN, then sorting by partial ord is total in this case. I'm not sure if I should give such an example in the docs or not. r? @GuillaumeGomez | ||||
| 2018-11-10 | revert making internal APIs const fn. | Mazdak Farrokhzad | -4/+4 | |
| 2018-11-10 | reduce list to functions callable in const ctx. | Mazdak Farrokhzad | -2/+2 | |
| 2018-11-10 | constify parts of libcore. | Mazdak Farrokhzad | -7/+6 | |
| 2018-10-18 | Stabilize slice::rchunks(), rchunks_mut(), rchunks_exact(), rchunk_exact_mut() | Sebastian Dröge | -40/+32 | |
| Fixes #55177 | ||||
| 2018-10-18 | Stabilize slice::chunks_exact() and slice::chunks_exact_mut() | Sebastian Dröge | -21/+17 | |
| Fixes #47115 | ||||
| 2018-10-18 | Auto merge of #54580 - sdroege:rchunks, r=SimonSapin | bors | -33/+717 | |
| Add slice::rchunks(), rchunks_mut(), rchunks_exact() and rchunks_exact_mut() These work exactly like the normal chunks iterators but start creating chunks from the end of the slice. ---- The new iterators were motivated by a [comment](https://github.com/rust-lang/rust/issues/47115#issuecomment-424141121) by @DutchGhost. ~~~This currently includes the commits from https://github.com/rust-lang/rust/pull/54537 to not have to rename things twice or have merge conflicts. I'll force-push a new version of the branch ones those are in master.~~~ Also the stabilization tracking issue is just some number right now. I'll create the corresponding issue once this is reviewed and otherwise mergeable. cc @DutchGhost | ||||
| 2018-10-18 | Add slice::rchunks(), rchunks_mut(), rchunks_exact() and rchunks_exact_mut() | Sebastian Dröge | -33/+717 | |
| These work exactly like the normal chunks iterators but start creating chunks from the end of the slice. See #55177 for the tracking issue | ||||
| 2018-10-12 | Auto merge of #54534 - nagisa:align-offset-simplification, r=alexcrichton | bors | -1/+1 | |
| Simplify implementation of align_offset slightly | ||||
| 2018-10-08 | Auto merge of #54700 - frewsxcv:frewsxcv-binary-search, r=GuillaumeGomez | bors | -10/+13 | |
| Clarify docs for when binary_search has many matches. Fixes https://github.com/rust-lang/rust/issues/51817. | ||||
| 2018-10-07 | Clarify docs for when binary_search has many matches. | Corey Farwell | -10/+13 | |
| Fixes https://github.com/rust-lang/rust/issues/51817. | ||||
| 2018-10-05 | Linkify types in docs | Havvy (Ryan Scheel) | -1/+1 | |
| 2018-10-05 | Slice total example: Move closer to total defn | Havvy (Ryan Scheel) | -6/+9 | |
| 2018-10-05 | Example of total ord of elements for sort_by | Havvy (Ryan Scheel) | -0/+6 | |
| 2018-10-05 | Doc total order requirement of sort(_unstable)_by | Havvy (Ryan Scheel) | -0/+7 | |
| I took the definition of what a total order is from the Ord trait docs. I specifically put "elements of the slice" because if you have a slice of f64s, but know none are NaN, then sorting by partial ord is total in this case. I'm not sure if I should give such an example in the docs or not. | ||||
| 2018-10-02 | Rollup merge of #54687 - scottmcm:more-elision, r=dtolnay | Pietro Albini | -48/+48 | |
| Use impl_header_lifetime_elision in libcore The feature is approved for stabilization, so let's use it to remove about 300 `'a`s. Tracking issue for the feature: https://github.com/rust-lang/rust/issues/15872 | ||||
| 2018-10-01 | Rollup merge of #53784 - tbu-:pr_doc_slice_isize_max, r=RalfJung | kennytm | -3/+14 | |
| Document that slices cannot be larger than `isize::MAX` bytes Fixes #53676. | ||||
| 2018-09-30 | Simplify implementation of align_offset slightly | Simonas Kazlauskas | -1/+1 | |
| 2018-09-29 | Use impl_header_lifetime_elision in libcore | Scott McMurray | -48/+48 | |
| 2018-09-29 | Revert "Auto merge of #53508 - japaric:maybe-uninit, r=RalfJung" | Ralf Jung | -10/+16 | |
| This reverts commit c6e3d7fa3113aaa64602507f39d4627c427742ff, reversing changes made to 4591a245c7eec9f70d668982b1383cd2a6854af5. | ||||
| 2018-09-27 | Don't have two adjacent "see also" sentences | Tobias Bucher | -3/+1 | |
| 2018-09-25 | Rollup merge of #54537 - sdroege:chunks-exact, r=alexcrichton | Pietro Albini | -52/+52 | |
| Rename slice::exact_chunks() to slice::chunks_exact() See https://github.com/rust-lang/rust/issues/47115#issuecomment-403090815 and https://github.com/rust-lang/rust/issues/47115#issuecomment-424053547 | ||||
| 2018-09-25 | Also rename ExactChunks iterator name to ChunksExact | Sebastian Dröge | -25/+25 | |
| 2018-09-24 | Rename slice::exact_chunks() to slice::chunks_exact() | Sebastian Dröge | -29/+29 | |
| See https://github.com/rust-lang/rust/issues/47115#issuecomment-403090815 and https://github.com/rust-lang/rust/issues/47115#issuecomment-424053547 | ||||
| 2018-09-23 | Introduce the partition_dedup/by/by_key methods for slices | Clément Renault | -0/+172 | |
| 2018-09-22 | address Mark-Simulacrum comments | Jorge Aparicio | -9/+6 | |
| 2018-09-22 | core: fix deprecated warnings | Jorge Aparicio | -13/+10 | |
| 2018-09-22 | Rollup merge of #54422 - ljedrz:simplify_first_last, r=Mark-Simulacrum | Pietro Albini | -6/+6 | |
| Simplify slice's first(_mut) and last(_mut) with get This change makes these functions easier to read and interpret. I haven't detected any difference in performance locally. r? @Mark-Simulacrum | ||||
| 2018-09-21 | Simplify slice's first(_mut) and last(_mut) with get | ljedrz | -6/+6 | |
| 2018-09-20 | define copy_within on slices | Jack O'Connor | -0/+57 | |
| This is a safe wrapper around ptr::copy, for regions within a single slice. Previously, safe in-place copying was only available as a side effect of Vec::drain. | ||||
| 2018-09-17 | Adjust the docs of `from_raw_parts` to match the implementation | Tobias Bucher | -4/+4 | |
| 2018-09-17 | Use more obvious calculation for slice size check | Tobias Bucher | -4/+2 | |
| 2018-09-16 | Auto merge of #53754 - RalfJung:slice_align_to, r=alexcrichton | bors | -8/+8 | |
| stabilize slice_align_to This is very hard to implement correctly, and leads to [serious bugs](https://github.com/llogiq/bytecount/pull/42) when done incorrectly. Moreover, this is needed to be able to run code that opportunistically exploits alignment on miri. So code using `align_to`/`align_to_mut` gets the benefit of a well-tested implementation *and* of being able to run in miri to test for (some kinds of) UB. This PR also clarifies the guarantee wrt. the middle part being as long as possible. Should the docs say under which circumstances the middle part could be shorter? Currently, that can only happen when running in miri. | ||||
| 2018-09-11 | Fix overflow in `from_raw_parts` size check | Tobias Bucher | -3/+5 | |
| 2018-09-10 | A slice covering exactly half the address space is not OK | Tobias Bucher | -6/+6 | |
| 2018-09-04 | Add `debug_assert!`s to `slice::from_raw_parts` | Tobias Bucher | -2/+11 | |
| Copy the documentation over to `slice::from_raw_parts_mut`. | ||||
| 2018-09-04 | Document that slices cannot be larger than `isize::MAX` bytes | Tobias Bucher | -0/+4 | |
| Fixes #53676. | ||||
| 2018-09-03 | Link to more detailed docs in `slice::from_raw_parts_mut` | Tobias Bucher | -4/+7 | |
| 2018-08-29 | Fix a comment in src/libcore/slice/mod.rs | Tobias Bucher | -6/+1 | |
| 2018-08-28 | stabilize slice_align_to | Ralf Jung | -8/+8 | |
| 2018-08-21 | Rollup merge of #53329 - frewsxcv:frewsxcv-ptr-add-sub, r=RalfJung | kennytm | -35/+35 | |
| Replace usages of ptr::offset with ptr::{add,sub}. Rust provides these helper methods – so let's use them! | ||||
| 2018-08-21 | Rollup merge of #53496 - matthiaskrgr:codespell_08_2018, r=varkor | kennytm | -3/+3 | |
| Fix typos found by codespell. | ||||
| 2018-08-20 | Replace usages of ptr::offset with ptr::{add,sub}. | Corey Farwell | -35/+35 | |
| 2018-08-19 | Fix typos found by codespell. | Matthias Krüger | -3/+3 | |
