about summary refs log tree commit diff
path: root/src/libcore/result.rs
AgeCommit message (Collapse)AuthorLines
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-5/+5
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/+2
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-1/+1
2013-05-04Register snapshotsBrian Anderson-7/+0
2013-04-25Rename vec::mod2 to vec::mod_zipCorey Richardson-1/+1
2013-04-10core: changes in response to #5656Niko Matsakis-0/+7
2013-04-08Removing no longer needed unsafe blocksAlex Crichton-4/+2
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-14/+14
2013-03-26librustc: Modify all code to use new lifetime binder syntaxPatrick Walton-1/+1
2013-03-23core: derive Clone for core typesAndrew Paseltiner-1/+1
2013-03-22libcore: Remove `pure` from libcore. rs=depurePatrick Walton-27/+27
2013-03-22core: replace uses of old deriving attribute with new oneAndrew Paseltiner-1/+1
2013-03-18librustc: Convert all uses of old lifetime notation to new lifetime ↵Patrick Walton-2/+2
notation. rs=delifetiming
2013-03-11librustc: Replace all uses of `fn()` with `&fn()`. rs=defunPatrick Walton-16/+16
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-14/+14
2013-03-04Remove unused imports throughout src/Alex Crichton-1/+0
2013-02-28librustc: Mark all type implementations public. rs=impl-publicityPatrick Walton-3/+3
2013-02-20librustc: Separate most trait bounds with '+'. rs=plussingPatrick Walton-4/+4
2013-02-15libcore: Get rid of `move`.Luqman Aden-12/+12
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-5/+5
2013-02-07Make ~fn non-copyable, make &fn copyable, split barefn/closure types,Niko Matsakis-3/+0
correct handling of moves for struct-record update. Part of #3678. Fixes #2828, #3904, #4719.
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-5/+5
2013-01-29libcore: De-export libcore. rs=deexportingPatrick Walton-12/+10
2013-01-14Inlining methods/functions in core.gifnksm-0/+16
Also inlining some functions which take functions as arguments.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+3
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-3/+0
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+3
module scope. r=tjc
2012-12-27librustc: Fix the test runner, the condition system, and core test. rs=bustagePatrick Walton-0/+3
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-20Fix Option::unwrap_err.Erick Tryzelaar-1/+1
2012-12-18core: use movable self to clean up option/result.Erick Tryzelaar-44/+43
2012-12-13Replace some Eq impls with deriving_eqBrian Anderson-20/+1
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-11-28Register snapshotsBrian Anderson-23/+0
2012-11-20Remove parentheses from closure argument typesErick Tryzelaar-12/+12
2012-11-19rustc: Implement explicit self for Eq and Ord. r=graydonPatrick Walton-0/+23
2012-11-18Made Result.get, get_ref, is_ok, is_err, and iter methods pure.Jesse Jones-6/+6
Note that the function versions were already pure.
2012-11-12Fix Result::chain, Result::chain_err to not require Copy bounds.Brian J. Burg-5/+5
2012-10-22core: Add Result.get_ref methodBrian Anderson-0/+8
2012-10-12Make moves explicit in core testsTim Chevalier-1/+1
2012-10-11Write option::chain and result::chain with `match move`Tim Chevalier-5/+3
Closes #3590
2012-10-04Forbid deprecated modes again in coreTim Chevalier-1/+2
Sadly, there's only one file that requires deprecated modes (stackwalk)... So, forbid them everywhere else.
2012-10-02Removing explicit uses of + modeTim Chevalier-9/+9
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 iter and result. Part of #3583.Graydon Hoare-19/+20
2012-09-28core: Demode patternsBrian Anderson-34/+34
2012-09-26Demode vec::push (and convert to method)Niko Matsakis-2/+2
2012-09-25Fix long linesTim Chevalier-3/+3
2012-09-25Demode core::resultBrian Anderson-54/+62
2012-09-23Register snapshots. Remove redundant Eq impls, Makefile hacksBrian Anderson-22/+0
2012-09-21De-mode vec::map, vec::eachi, vec::rev_each, vec::rev_eachiNiko Matsakis-4/+2