about summary refs log tree commit diff
path: root/src/libcore
AgeCommit message (Collapse)AuthorLines
2018-06-13Add Ref/RefMut map_split methodJoshua Liebow-Feeser-19/+185
2018-06-13Improve core::task::TaskObjJosef Reinhard Brandl-14/+15
2018-06-13Replace `core::iter::AlwaysOk<T>` by `Result<T, !>`kennytm-19/+4
2018-06-12Auto merge of #51505 - cuviper:these-go-to-11, r=estebankbors-1120/+1214
Regenerate character tables for Unicode 11 None
2018-06-12Stabilize #[repr(transparent)]Simon Sapin-1/+1
Tracking issue FCP: https://github.com/rust-lang/rust/issues/43036#issuecomment-394094318 Reference PR: https://github.com/rust-lang-nursery/reference/pull/353
2018-06-12Auto merge of #51241 - glandium:globalalloc, r=sfackler,SimonSapinbors-111/+249
Stabilize GlobalAlloc and #[global_allocator] This PR implements the changes discussed in https://github.com/rust-lang/rust/issues/49668#issuecomment-393263510 Fixes #49668 Fixes #27389 This does not change the default global allocator: #36963
2018-06-11stabilize Iterator::flatten in 1.29, fixes #48115.Mazdak Farrokhzad-15/+7
2018-06-11More alloc docs tweaksSimon Sapin-1/+23
2018-06-11Alloc docs teaksSimon Sapin-5/+0
2018-06-11Stablize the GlobalAlloc traitSimon Sapin-1/+5
Fixes https://github.com/rust-lang/rust/issues/49668
2018-06-11Stabilize alloc::Layout (with only some of its methods)Simon Sapin-9/+9
2018-06-11Mark as permanently-unstable some implementation detailsSimon Sapin-1/+1
2018-06-11Stablize the alloc module without changing stability of its contents.Simon Sapin-6/+26
2018-06-11Document memory allocation APIsSimon Sapin-49/+178
Add some docs where they were missing, attempt to fix them where they were out of date.
2018-06-11Remove deprecated heap modulesSimon Sapin-7/+0
The heap.rs file was already unused.
2018-06-11Remove alloc::Opaque and use *mut u8 as pointer type for GlobalAllocMike Hommey-49/+24
2018-06-11Auto merge of #51442 - tinaun:more-future-impls, r=cramertjbors-0/+72
[futures] add a few blanket impls to std these were defined in the futures crate, but with the core definitions moving to std these would need to move too.
2018-06-11Regenerate character tables for Unicode 11Josh Stone-1120/+1214
2018-06-11Auto merge of #51423 - RalfJung:from_raw_parts, r=sfacklerbors-5/+7
Improve docs for slice::from_raw_parts Explain why the pointer must be non-null and aligned. Cc @hsivonen
2018-06-10Auto merge of #51474 - llogiq:from-docs, r=TimNNbors-13/+39
add some docs to `From` conversions This adds a helpful document to the bool → int* conversions as well as to the lossless integer conversions. One of #51430 down, some more to go.
2018-06-10Auto merge of #51200 - tmccombs:stable-iter-repeat-with, r=Centril,kennytmbors-34/+8
Stabilize iterator_repeat_with Fixes #48169
2018-06-10add some docs to conversionsAndre Bogus-13/+39
2018-06-10Auto merge of #51320 - tmccombs:step-by, r=SimonSapinbors-14/+4
Stabilize Iterator::step_by Fixes #27741
2018-06-09Auto merge of #51441 - bstrie:sizeof128, r=dtolnaybors-0/+2
Document size_of for 128-bit integers We might want to consider separately documenting the alignment of primitives, rather than just their size, since 128-bit integers, unlike all other primitives, have an alignment that is not identical to their size (size_of is 16, align_of is 8)
2018-06-09Be more precise about why references need to be non-null and alignedRalf Jung-1/+1
2018-06-09add inherent methods to Polltinaun-0/+49
2018-06-08Rollup merge of #51396 - SimonSapin:option-nonzero-layout, r=SimonSapinMark Rousskov-2/+2
Make the size of Option<NonZero*> a documented guarantee. Closes #49137, the tracking issue for `NonZero*`, as this was the last remaining open question. Note that `ptr::NonNull<T>` already documents a similar guarantee.
2018-06-08add a few blanket future impls to stdtinaun-0/+23
2018-06-08Document size_of for 128-bit integersbstrie-0/+2
We might want to consider separately documenting the alignment of primitives, rather than just their size, since 128-bit integers, unlike all other primitives, have an alignment that is not identical to their size (size_of is 16, align_of is 8)
2018-06-07Improve docs for slice::from_raw_partsRalf Jung-5/+7
2018-06-06Auto merge of #51263 - cramertj:futures-in-core, r=aturonbors-0/+611
Add Future and task system to the standard library This adds preliminary versions of the `std::future` and `std::task` modules in order to unblock development of async/await (https://github.com/rust-lang/rust/issues/50547). These shouldn't be considered as final forms of these libraries-- design questions about the libraries should be left on https://github.com/rust-lang/rfcs/pull/2418. Once that RFC (or a successor) is merged, these APIs will be adjusted as necessary. r? @aturon
2018-06-06Add Future and task system to the standard libraryTaylor Cramer-0/+611
2018-06-06Auto merge of #51333 - GuillaumeGomez:reexport-fmt-alignment, r=SimonSapinbors-2/+1
Reexport fmt::Alignment into std Follow-up of #51078.
2018-06-06Make the size of Option<NonZero*> a documented guarantee.Simon Sapin-2/+2
Closes #49137, the tracking issue for `NonZero*`, as this was the last remaining open question. Note that `ptr::NonNull<T>` already documents a similar guarantee.
2018-06-06Revert "Remove TryFrom impls that might become conditionally-infallible with ↵Simon Sapin-83/+189
a portability lint" This reverts commit 837d6c70233715a0ae8e15c703d40e3046a2f36a. Fixes https://github.com/rust-lang/rust/issues/49415
2018-06-04Add ExactChunks::remainder and ExactChunks::into_remainderSebastian Dröge-8/+54
These allow to get the leftover items of the slice that are not being iterated as part of the iterator due to not filling a complete chunk. The mutable version consumes the slice because otherwise we would either a) have to borrow the iterator instead of taking the lifetime of the underlying slice, which is not what *any* of the other iterator functions is doing, or b) would allow returning multiple mutable references to the same data The current behaviour of consuming the iterator is consistent with IterMut::into_slice for the normal iterator.
2018-06-04Move slice::exact_chunks directly above exact_chunks_mut for more consistent ↵Sebastian Dröge-35/+35
docs order See https://github.com/rust-lang/rust/issues/47115#issuecomment-392532855
2018-06-03Rollup merge of #51326 - sdroege:slice-iter-cleanup, r=dtolnayMark Simulacrum-16/+22
Various minor slice iterator cleanups See individual commits
2018-06-03Rollup merge of #51299 - faern:const-int-ops, r=oli-obkMark Simulacrum-14/+281
const fn integer operations A follow up to #51171 Fixes #51267 Makes a lot of the integer methods (`swap_bytes`, `count_ones` etc) `const fn`s. See #51267 for a discussion about why this is wanted and the solution used.
2018-06-03Reexport fmt::Alignment into stdGuillaume Gomez-2/+1
2018-06-03Implement TrustedLen for Windows and the 4 Chunks iteratorsSebastian Dröge-0/+15
2018-06-03Remove mention of Slice/SliceMut traits from IterMut documentationSebastian Dröge-3/+1
These don't exist anymore.
2018-06-03Move TrustedLen and FusedIterator impl of Iter/IterMut into macroSebastian Dröge-13/+6
2018-06-03undo payload in core::panic! changesJorge Aparicio-47/+7
2018-06-03document that `panic_impl` never passes the FFI boundaryJorge Aparicio-1/+2
2018-06-03remove unused `struct NoPayload`Jorge Aparicio-2/+0
2018-06-03s/panic_fmt/panic_impl/g in docsJorge Aparicio-1/+1
2018-06-03implement #[panic_implementation]Jorge Aparicio-2/+66
2018-06-02Stabilize Iterator::step_byThayne McCombs-14/+4
Fixes #27741
2018-06-02Rollup merge of #51306 - kennytm:impl-default-for-mut-str, r=SimonSapinMark Simulacrum-0/+6
impl Default for &mut str Rationale: There is already `impl Default for &mut [T]`. Note: This impl is insta-stable.