about summary refs log tree commit diff
path: root/src/libcore/either.rs
AgeCommit message (Collapse)AuthorLines
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-256/+0
This only changes the directory names; it does not change the "real" metadata names.
2013-05-18Use four-space indentation, add trailing commas, and remove unnecessary uses ↵Brendan Zabarauskas-10/+16
of the return keyword
2013-05-18Convert various inner doc-comments to outer doc-commentsBrendan Zabarauskas-40/+22
2013-05-15Rename vec::len(var) to var.len()Youngmin Yoo-10/+10
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-2/+2
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-13Remove re-exports from libcore/core.rcAlex Crichton-0/+3
Also fix up all the fallout elsewhere throughout core. It's really nice being able to have the prelude.
2013-05-09libcore: rename vec::each(variable) to variable.eachYoungmin Yoo-2/+2
2013-05-02Remove 'Local Variable' commentsBrendan Zabarauskas-10/+0
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-2/+2
2013-03-23core: derive Clone for core typesAndrew Paseltiner-1/+1
2013-03-22libcore: Remove `pure` from libcore. rs=depurePatrick Walton-6/+6
2013-03-22core: replace uses of old deriving attribute with new oneAndrew Paseltiner-1/+1
2013-03-20change some uses of fail_unless to assert_eqJohn Clements-17/+17
2013-03-11librustc: Replace all uses of `fn()` with `&fn()`. rs=defunPatrick Walton-3/+3
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-19/+19
2013-03-04Remove unused imports throughout src/Alex Crichton-1/+0
2013-02-20librustc: Separate most trait bounds with '+'. rs=plussingPatrick Walton-1/+1
2013-02-15libcore: Get rid of `move`.Luqman Aden-5/+5
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-2/+4
2013-02-13rustc and std: teach about #[bench], modernize to use quote_expr! some.Graydon Hoare-1/+1
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-4/+0
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-02-03core: Flesh out the either traitsErick Tryzelaar-0/+17
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-2/+2
2013-01-14Inlining methods/functions in core.gifnksm-0/+7
Also inlining some functions which take functions as arguments.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-2/+3
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-3/+2
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-2/+3
module scope. r=tjc
2013-01-04Make either::{partition, flip, to_result} take their arguments by-valueTim Chevalier-17/+13
Addresses an XXX r=pcwalton
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-0/+3
contain at least two components. r=graydon
2012-12-18core: add unwrap methods to dvec, either, and mutableErick Tryzelaar-0/+8
2012-12-13Replace some Eq impls with deriving_eqBrian Anderson-20/+1
2012-12-10Add license boilerplate to more files.Graydon Hoare-0/+10
2012-11-28core: Convert some records to structsBrian Anderson-17/+17
2012-11-28Register snapshotsBrian Anderson-23/+0
2012-11-20Remove parentheses from closure argument typesErick Tryzelaar-2/+2
2012-11-19rustc: Implement explicit self for Eq and Ord. r=graydonPatrick Walton-0/+23
2012-10-04Forbid deprecated modes again in coreTim Chevalier-1/+1
Sadly, there's only one file that requires deprecated modes (stackwalk)... So, forbid them everywhere else.
2012-10-02Removing explicit uses of + modeTim Chevalier-3/+4
This removes most explicit uses of the + argument mode. Pending a snapshot, I had to remove the forbid(deprecated_modes) pragma from a bunch of files. I'll put it back! + mode still has to be used in a few places for functions that get moved (see task.rs) The changes outside core and std are due to the to_bytes trait and making the compiler (with legacy modes on) agree with the libraries (with legacy modes off) about modes.
2012-10-01De-export either. Part of #3583.Graydon Hoare-12/+13
2012-09-28core: Demode patternsBrian Anderson-0/+3
2012-09-28Fix patterns in eitherTim Chevalier-10/+10
2012-09-26Demode vec::push (and convert to method)Niko Matsakis-14/+14
2012-09-23Register snapshots. Remove redundant Eq impls, Makefile hacksBrian Anderson-22/+0
2012-09-20rustc: De-mode all overloaded operatorsPatrick Walton-0/+22
2012-09-19De-mode vec::each() and many of the str iteration routinesNiko Matsakis-3/+3
Note that the method foo.each() is not de-moded, nor the other vec routines.
2012-09-18Revert "replace explicit calls to vec::each with vec::each_ref, partially ↵Niko Matsakis-6/+6
demode str" This reverts commit 1be24f0758d3075d2e7f141f8831bb8a233ce86e. Not quite ready.
2012-09-18replace explicit calls to vec::each with vec::each_ref, partially demode strNiko Matsakis-6/+6
2012-09-10Make more moves explicit in libcoreTim Chevalier-5/+5
2012-09-07Convert all kind bounds to camel case. Remove send, owned keywords.Brian Anderson-5/+5
2012-09-07rustc: Add an "ne" method to the Eq trait, and implement it everywherePatrick Walton-0/+1