summary refs log tree commit diff
path: root/src/libcore/result.rs
AgeCommit message (Collapse)AuthorLines
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
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-0/+1
#[legacy_exports];
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-1/+1
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-2/+2
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-2/+2
2012-09-18Replace uses of 'unchecked' with 'unsafe'Brian Anderson-2/+2
2012-09-15int/uint parse_buf => parse_bytes (#3444)Erick Tryzelaar-2/+2
2012-09-10Make more moves explicit in libcoreTim Chevalier-4/+4
2012-09-07Convert all kind bounds to camel case. Remove send, owned keywords.Brian Anderson-18/+18
2012-09-07rustc: Add an "ne" method to the Eq trait, and implement it everywherePatrick Walton-0/+1
2012-09-04libcore: "import" -> "use"Patrick Walton-2/+2
2012-09-02Silence non-implicitly-copyable-typarams in coretestBrian Anderson-0/+1
2012-08-30libcore: add result::unwrap_err.Erick Tryzelaar-0/+8
2012-08-30libcore: result::unwrap should use movesErick Tryzelaar-9/+4
2012-08-30libcore: fix a typoErick Tryzelaar-1/+1
2012-08-29rustc: Make `<` and `=` into traitsPatrick Walton-0/+20
2012-08-27Convert core::result to camel caseBrian Anderson-89/+89
2012-08-26Camel case the option typeBrian Anderson-4/+4
2012-08-26libcore: Implement result::get_ref.Patrick Walton-0/+16
This can be more efficient than unwrapping for large structural types.
2012-08-23`m1!{...}` -> `m1!(...)`Paul Stansifer-1/+1
2012-08-15Convert more core types to camel caseBrian Anderson-4/+4
2012-08-09de-mode-ify infer and some parts of typeckNiko Matsakis-3/+3
also, fix bug in the various lint passes that fn() was considered not suitable for the default mode
2012-08-08Convert impls to new syntaxBrian Anderson-4/+4
2012-08-06Convert alt to match. Stop parsing altBrian Anderson-20/+20
2012-08-05Switch alts to use arrowsBrian Anderson-45/+41
2012-08-01Convert ret to returnBrian Anderson-9/+9
2012-07-30Change syntax extension syntax: `#m[...]` -> `m!{...}`.Paul Stansifer-1/+1
2012-07-14remove typestate from code, tests, and docsNiko Matsakis-5/+4
2012-07-14Move the world over to using the new style string literals and types. Closes ↵Michael Sullivan-14/+14
#2907.
2012-07-12Get rid of all of the remaining /~s in the code base.Michael Sullivan-2/+2
2012-07-04convert doc-attributes to doc-comments using ↵Gareth Daniel Smith-122/+124
./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
2012-07-01Convert to new closure syntaxBrian Anderson-9/+9
2012-06-30Eliminate usages of old sugared call syntaxBrian Anderson-8/+8
2012-06-29Switch the compiler over to using ~[] notation instead of []/~. Closes #2759.Michael Sullivan-6/+6
2012-06-27Removed pretty much all the vector+ from core (issue #2719)Eric Holk-2/+2
2012-06-25Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.Michael Sullivan-10/+11
2012-06-25core: Convert declarations to not use the trailing 'unsafe' notationBrian Anderson-8/+10
2012-06-22core: Name is_failure to is_err, is_success to is_okBrian Anderson-6/+6
2012-06-22core: Split up result extensions by kind boundsBrian Anderson-18/+24
2012-05-28Add methods iter, iter_err, map, map_err to the result type.Erick Tryzelaar-0/+134