about summary refs log tree commit diff
path: root/src/libcore
AgeCommit message (Collapse)AuthorLines
2014-10-07auto merge of #17807 : nick29581/rust/slice6, r=aturonbors-82/+188
r? @aturon
2014-10-07Reinstate AsSlice impls for Option and ResultNick Cameron-0/+37
2014-10-07Rename slicing methodsNick Cameron-9/+124
2014-10-07Rename slice::SliceNick Cameron-44/+6
2014-10-07Put slicing syntax behind a feature gate.Nick Cameron-4/+5
[breaking-change] If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
2014-10-07Use slice syntax instead of slice_to, etc.Nick Cameron-60/+51
2014-10-06Remove core::any::AnyPrivateAaron Turon-7/+2
[Previously](https://github.com/rust-lang/rust/commit/e5da6a71a6a0b46dd3630fc8326e6d5906a1fde6), the `Any` trait was split into a private portion and an (empty) public portion, in order to hide the implementation strategy used for downcasting. However, the [new rules](https://github.com/rust-lang/rust/commit/e9ad12c0cae5c43ada6641c7dc840a0fbe5010a2) for privacy forbid `AnyPrivate` from actually being private. This patch thus reverts the introduction of `AnyPrivate`. Although this is unlikely to break any real code, it removes a public trait and is therefore a: [breaking-change]
2014-10-06auto merge of #17820 : pnkfelix/rust/fsk-improve-binary_search-doc2, ↵bors-2/+42
r=alexcrichton Add example to doc for `slice::ImmutableSlice::binary_search`. Fix #17817.
2014-10-06Add example to doc for `slice::ImmutableSlice::binary_search`.Felix S. Klock II-2/+42
Fix #17817.
2014-10-05auto merge of #16970 : kmcallister/rust/llvm-unreachable, r=thestingerbors-0/+7
I'm not sure how to add an automated test for this.
2014-10-04Add intrinsics::unreachableKeegan McAllister-0/+7
2014-10-04Make examples for AtomicInt refer to AtomicIntPeter Minten-6/+6
The examples for fetch_or, fetch_and and fetch_xor for std::sync::atomic::AtomicInt used AtomicUint instead of AtomicInt.
2014-10-02rollup merge of #17666 : eddyb/take-garbage-outAlex Crichton-10/+1
Conflicts: src/libcollections/lib.rs src/libcore/lib.rs src/librustdoc/lib.rs src/librustrt/lib.rs src/libserialize/lib.rs src/libstd/lib.rs src/test/run-pass/issue-8898.rs
2014-10-02rollup merge of #16993 : dschatzberg/items-boundsAlex Crichton-2/+2
2014-10-02Revert "Use slice syntax instead of slice_to, etc."Aaron Turon-65/+107
This reverts commit 40b9f5ded50ac4ce8c9323921ec556ad611af6b7.
2014-10-02Revert "Remove the `_` suffix from slice methods."Aaron Turon-99/+79
This reverts commit df2f1fa7680a86ba228f004e7de731e91a1df1fe.
2014-10-02Revert "Put slicing syntax behind a feature gate."Aaron Turon-7/+6
This reverts commit 95cfc35607ccf5f02f02de56a35a9ef50fa23a82.
2014-10-02Revert "Review and rebasing changes"Aaron Turon-64/+28
This reverts commit 6e0611a48707a1f5d90aee32a02b2b15957ef25b.
2014-10-02Add lifetime bounds on Items and MutItems.Dan Schatzberg-2/+2
This also requires a fix for Vec's MoveItems. This resolves issue #16941
2014-10-02syntax: mark the managed_boxes feature as Removed.Eduard Burtescu-1/+1
2014-10-02core: remove raw::GcBox.Eduard Burtescu-9/+0
2014-10-02Review and rebasing changesNick Cameron-28/+64
2014-10-02Put slicing syntax behind a feature gate.Nick Cameron-6/+7
[breaking-change] If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
2014-10-02Remove the `_` suffix from slice methods.Nick Cameron-79/+99
Deprecates slicing methods from ImmutableSlice/MutableSlice in favour of slicing syntax or the methods in Slice/SliceMut. Closes #17273.
2014-10-02Use slice syntax instead of slice_to, etc.Nick Cameron-107/+65
2014-10-01auto merge of #17132 : reem/rust/any-static-bound, r=alexcrichtonbors-3/+3
This bound is already implicit through the AnyPrivate trait, but since it is not explicit, you still have to write Box<Any + 'static>, even though Any can only be 'static. Introducing the 'static bound here makes this bound explicit, making Box<Any> legal.
2014-09-30Bound Any with 'staticJonathan Reem-3/+3
This bound is already implicit through the AnyPrivate trait, but since it is not explicit, you still have to write Box<Any + 'static>, even though Any can only be 'static. Introducing the 'static bound here makes this bound explicit, making Box<Any> legal.
2014-09-30librustc: Forbid `..` in range patterns.Patrick Walton-20/+20
This breaks code that looks like: match foo { 1..3 => { ... } } Instead, write: match foo { 1...3 => { ... } } Closes #17295. [breaking-change]
2014-09-29rollup merge of #17621 : sfackler/new-snapAlex Crichton-27/+0
2014-09-29rollup merge of #17602 : Tobba/defailbloat-staticAlex Crichton-9/+8
2014-09-29rollup merge of #17585 : sfackler/string-sliceAlex Crichton-0/+23
2014-09-29rollup merge of #17582 : kmcallister/gc-boxAlex Crichton-4/+4
2014-09-29rollup merge of #17564 : japaric/fix-slicemut-docsAlex Crichton-4/+4
2014-09-29rollup merge of #17557 : sfackler/fuse-exampleAlex Crichton-1/+3
2014-09-28Register new snapshotsSteven Fackler-23/+0
2014-09-28Defailbloat fail!(&'static str)Tobba-9/+8
2014-09-26Implement Slice for String and strSteven Fackler-0/+23
Closes #17502
2014-09-27auto merge of #17469 : sfackler/rust/into-result, r=aturonbors-1/+44
This is the inverse of `Result::ok` and helps to bridge `Option` and `Result` based APIs.
2014-09-26Rename raw::Box to raw::GcBoxKeegan McAllister-4/+4
Fixes #17470.
2014-09-26Fix `SliceMut` documentationJorge Aparicio-4/+4
The syntax sugar is `[mut from..to]` not `[from..to]`
2014-09-26Add Option::{ok_or, ok_or_else}Steven Fackler-1/+44
These are the inverses of `Result::ok` and help to bridge `Option` and `Result` based APIs.
2014-09-25Fix Iterator::fuse exampleSteven Fackler-1/+3
The for loop would *always* exaust the iterator previously, which seems like behavior that was not intended. It's still kind of a weird function.
2014-09-25Fallout from deprecationAaron Turon-0/+1
2014-09-25Stabilize mutable slice APIAaron Turon-239/+266
This commit is another in the series of vector slice API stabilization. The focus here is the *mutable* slice API. Largely, this API inherits the stability attributes [previously assigned](https://github.com/rust-lang/rust/pull/16332) to the analogous methods on immutable slides. It also adds comments to a few `unstable` attributes that were previously missing them. In addition, the commit adds several `_mut` variants of APIs that were missing: - `init_mut` - `head_mut` - `tail_mut` - `splitn_mut` - `rsplitn_mut` Some of the unsafe APIs -- `unsafe_set`, `init_elem`, and `copy_memory` -- were deprecated in favor of working through `as_mut_ptr`, to simplify the API surface. Due to deprecations, this is a: [breaking-change]
2014-09-25auto merge of #17466 : nikomatsakis/rust/oibt, r=pcwaltonbors-4/+4
Moves the vast majority of builtin bound checking out of type contents and into the trait system. This is a preliminary step for a lot of follow-on work: - opt-in builtin types, obviously - generalized where clauses, because TypeContents has this notion that a type parameter has a single set of builtin kinds, but with where clauses it depends on context - generalized coherence, because this adds support for recursive trait selection Unfortunately I wasn't able to completely remove Type Contents from the front-end checking in this PR. It's still used by EUV to decide what gets moved and what doesn't. r? @pcwalton
2014-09-25auto merge of #17482 : hoeppnertill/rust/master, r=alexcrichtonbors-1/+27
Intended to prevent each user to write his own partial_min/max, possibly differing in slight details. @sfackler encouraged to PR this on IRC. (Let's hope this works... First PR.)
2014-09-25auto merge of #17455 : steveklabnik/rust/document_default, r=alexcrichtonbors-3/+108
Given that the `Default` module is now stable, it might as well get good docs.
2014-09-25auto merge of #17498 : coyotebush/rust/iter-doc, r=huonwbors-3/+1
OrdIterator: the doc says that values must implement `PartialOrd`, while the implementation is only for `Ord` values. It looks like this initially got out of sync in 4e1c215. Removed the doc sentence entirely since it seems redundant. MultiplicativeIterator: Fixed weird sentence.
2014-09-25Add partial_min/max to libcore/cmpTill Hoeppner-1/+27
Add partial_min/max to libcore/cmp Match against None and mark as experimental Shortened documentation. Removed whitespace
2014-09-25Integrate builtin bounds fully into the trait checkerNiko Matsakis-4/+4