about summary refs log tree commit diff
path: root/src/liballoc
AgeCommit message (Collapse)AuthorLines
2018-03-15Auto merge of #47813 - kennytm:stable-incl-range, r=nrcbors-8/+9
Stabilize inclusive range (`..=`) Stabilize the followings: * `inclusive_range` — The `std::ops::RangeInclusive` and `std::ops::RangeInclusiveTo` types, except its fields (tracked by #49022 separately). * `inclusive_range_syntax` — The `a..=b` and `..=b` expression syntax * `dotdoteq_in_patterns` — Using `a..=b` in a pattern cc #28237 r? @rust-lang/lang
2018-03-15Keep the fields of RangeInclusive unstable.kennytm-0/+2
2018-03-15Stabilize `inclusive_range_syntax` language feature.kennytm-1/+1
Stabilize the syntax `a..=b` and `..=b`.
2018-03-15Stabilize `inclusive_range` library feature.kennytm-7/+6
Stabilize std::ops::RangeInclusive and std::ops::RangeInclusiveTo.
2018-03-14try_reserve: disabling tests for asmjs, blocked by #48968snf-2/+18
2018-03-14implementing fallible allocation API (try_reserve) for Vec, String and HashMapsnf-43/+903
2018-03-13Add hexadecimal formatting of integers with fmt::DebugSimon Sapin-0/+2
This can be used for integers within a larger types which implements Debug (possibly through derive) but not fmt::UpperHex or fmt::LowerHex. ```rust assert!(format!("{:02x?}", b"Foo\0") == "[46, 6f, 6f, 00]"); assert!(format!("{:02X?}", b"Foo\0") == "[46, 6F, 6F, 00]"); ``` RFC: https://github.com/rust-lang/rfcs/pull/2226
2018-03-13Rollup merge of #48877 - GuillaumeGomez:vec-missing-links, r=QuietMisdreavuskennytm-7/+14
Add missing urls r? @QuietMisdreavus
2018-03-11Update Cargo submoduleAlex Crichton-2/+248
Required moving all fulldeps tests depending on `rand` to different locations as now there's multiple `rand` crates that can't be implicitly linked against.
2018-03-09Add missing urlsGuillaume Gomez-7/+14
2018-03-06Rollup merge of #47463 - bluss:fused-iterator, r=alexcrichtonkennytm-32/+31
Stabilize FusedIterator FusedIterator is a marker trait that promises that the implementing iterator continues to return `None` from `.next()` once it has returned `None` once (and/or `.next_back()`, if implemented). The effects of FusedIterator are already widely available through `.fuse()`, but with stable `FusedIterator`, stable Rust users can implement this trait for their iterators when appropriate. Closes #35602
2018-03-06Rollup merge of #48657 - sinkuu:opt_str_repeat, r=dtolnaykennytm-3/+55
Optimize str::repeat Improves the performance of `str::repeat` by bulk copying. Here is the benchmarks of `"abcde".repeat(n)`: |`n`|old [ns/iter]|new [ns/iter]|diff [%]| ---|---|---|--- |1|27.205|27.421|+0.794| |2|27.500|27.516|+0.0581| |3|27.923|27.648|-0.985| |4|31.206|30.145|-3.40| |5|35.144|31.861|-9.34| |7|43.131|34.621|-19.7| |10|54.945|36.203|-34.1| |100|428.31|52.895|-87.7|
2018-03-04Avoid unnecessary calculationShotaro Yamada-3/+3
2018-03-04Add commentsShotaro Yamada-20/+40
2018-03-03core: Update stability attributes for FusedIteratorUlrik Sverdrup-30/+30
2018-03-03core: Stabilize FusedIteratorUlrik Sverdrup-32/+31
FusedIterator is a marker trait that promises that the implementing iterator continues to return `None` from `.next()` once it has returned `None` once (and/or `.next_back()`, if implemented). The effects of FusedIterator are already widely available through `.fuse()`, but with stable `FusedIterator`, stable Rust users can implement this trait for their iterators when appropriate.
2018-03-02Don't have Vec<T> delegate to [T]'s bounds for indexingJonathan Behrens-7/+11
2018-03-02Update commentsJonathan Behrens-2/+2
2018-03-02Have Vec use slice's implementations of Index<I> and IndexMut<I>Jonathan Behrens-125/+5
2018-03-02Optimize str::repeatShotaro Yamada-3/+35
2018-02-28Rollup merge of #48450 - frewsxcv:frewsxcxv-stabilize-slice-rotatee, ↵kennytm-20/+3
r=alexcrichton Stabilize [T]::rotate_{left,right} https://github.com/rust-lang/rust/issues/41891
2018-02-25Rollup merge of #48166 - ↵kennytm-2/+1
hedgehog1024:hedgehog1024-stabilize-entry_and_modify, r=alexcrichton Stabilize 'entry_and_modify' feature Stabilize `entry_and_modify` feature introduced by #44734. Closes #44733
2018-02-251.25.0 -> 1.26.-Manish Goregaokar-1/+1
2018-02-24Rollup merge of #48110 - Centril:stabilize/box_leak, r=alexcrichtonManish Goregaokar-6/+1
Stabilize Box::leak Stabilizes the following: + `Box::leak` (`box_leak`, in nightly since 2017-11-23) cc #46179 r? @rust-lang/libs
2018-02-23Rollup merge of #48438 - mbrubeck:docs, r=TimNNManish Goregaokar-4/+4
[docs] Minor wording changes to drain_filter docs The docs currently say, "If the closure returns false, it will try again, and call the closure on the next element." But this happens regardless of whether the closure returns true or false.
2018-02-22Stabilize [T]::rotate_{left,right}Corey Farwell-20/+3
https://github.com/rust-lang/rust/issues/41891
2018-02-22[docs] Minor wording changes to drain_filter docsMatt Brubeck-4/+4
The docs currently say, "If the closure returns false, it will try again, and call the closure on the next element." But this happens regardless of whether the closure returns true or false.
2018-02-22Small grammar fix to docs for String::new().Anthony Deschamps-1/+1
2018-02-18Auto merge of #47687 - SimonSapin:panic-impl, r=sfacklerbors-1/+1
RFC 2070 part 1: PanicInfo and Location API changes This implements part of https://rust-lang.github.io/rfcs/2070-panic-implementation.html Tracking issue: https://github.com/rust-lang/rust/issues/44489 * Move `std::panic::PanicInfo` and `std::panic::Location` to a new `core::panic` module. The two types and the `std` module were already `#[stable]` and stay that way, the new `core` module is `#[unstable]`. * Add a new `PanicInfo::message(&self) -> Option<&fmt::Arguments>` method, which is `#[unstable]`. * Implement `Display` for `PanicInfo` and `Location`
2018-02-16Clarify contiguity of Vec's elements.Sergio Benitez-5/+5
2018-02-13Switch to retain calling drain_filter.Jacob Kiesel-21/+1
2018-02-12Stabilize 'entry_and_modify' feature for BTreeMaphedgehog1024-2/+1
2018-02-10stabilize Box::leak: remove #![feature(box_leak)] in docsMazdak Farrokhzad-4/+0
2018-02-10stabilize (version: 1.26.0) Box::leak, cc #46179Mazdak Farrokhzad-2/+1
2018-02-08Swap `ptr::read` for `ptr::drop_in_place`Jacob Kiesel-1/+1
2018-02-07Apply optimization from #44355 to retainJacob Kiesel-4/+9
2018-01-28Document that `Index` ops can panic on `HashMap` & `BTreeMap`.Corey Farwell-0/+5
Fixes https://github.com/rust-lang/rust/issues/47011.
2018-01-25Auto merge of #47006 - bitshifter:stabilize-repr-align, r=eddybbors-1/+0
Stabilized `#[repr(align(x))]` attribute (RFC 1358) Stabilzed `#[repr(align(x))]` with attr_literal syntax as proposed by @eddyb https://github.com/rust-lang/rust/issues/33626#issuecomment-348467804
2018-01-24Add missing micro version number component in stability attributes.Simon Sapin-1/+1
2018-01-24Auto merge of #47299 - cramertj:unsafe-placer, r=alexcrichtonbors-7/+7
Make core::ops::Place an unsafe trait Consumers of `Place` would reasonably expect that the `pointer` function returns a valid pointer to memory that can actually be written to.
2018-01-23Stabilized `#[repr(align(x))]` attribute (RFC 1358)Cameron Hart-1/+0
2018-01-21Rollup merge of #47632 - sdroege:exact-chunks-docs-broken-links, r=kennytmGuillaume Gomez-0/+8
Fix broken links to other slice functions in chunks/chunks_mut/exact_… …chunk/exact_chunks_mut docs See https://github.com/rust-lang/rust/pull/47126#discussion_r162780492
2018-01-21Rollup merge of #47625 - astraw:btreeset-doctest-fix, r=kennytmGuillaume Gomez-12/+12
fix doctests for BTreeSet to use BTreeSet (not BTreeMap) This fixes #47624
2018-01-21Rollup merge of #47595 - PieterPenninckx:master, r=shepmasterGuillaume Gomez-7/+8
Small improvements to the documentation of VecDeque. Some small improvements to the documentation of `VecDeque`.
2018-01-21Revert change to docs in panic section of VecDeque::split_offPieter Penninckx-1/+1
2018-01-21Fix broken links to other slice functions in ↵Sebastian Dröge-0/+8
chunks/chunks_mut/exact_chunk/exact_chunks_mut docs See https://github.com/rust-lang/rust/pull/47126#discussion_r162780492
2018-01-20fix doctests for BTreeSet to use BTreeSet (not BTreeMap)Andrew Straw-12/+12
This fixes #47624
2018-01-20Auto merge of #46980 - ↵bors-1/+1
zackmdavis:and_the_case_of_the_needlessly_parenthesized_arguments, r=petrochenkov in which the unused-parens lint comes to cover function and method args Resolves #46137.
2018-01-20Assign its own tracking issue to Box::into_raw_non_nullSimon Sapin-1/+4
https://github.com/rust-lang/rust/issues/47336
2018-01-20Revert Box::into_raw_non_null to unstableSimon Sapin-1/+1