about summary refs log tree commit diff
path: root/src/libstd/list.rs
AgeCommit message (Collapse)AuthorLines
2012-08-15Expunge match checksTim Chevalier-1/+5
2012-08-06Convert alt to match. Stop parsing altBrian Anderson-7/+7
2012-08-05Switch alts to use arrowsBrian Anderson-13/+16
2012-08-01Convert ret to returnBrian Anderson-12/+12
2012-07-31Introduce 'return', 'match' and 'module' as synonymsBrian Anderson-5/+5
2012-07-14Move the world over to using the new style string literals and types. Closes ↵Michael Sullivan-1/+1
#2907.
2012-07-04convert doc-attributes to doc-comments using ↵Gareth Daniel Smith-32/+32
./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
2012-07-02rustc: Implement a new resolve pass behind a compile flagPatrick Walton-0/+5
2012-07-02Make list::from_vec take a slice, not a ~.Ben Blum-1/+1
2012-07-01Convert to new closure syntaxBrian Anderson-4/+4
2012-06-30Eliminate usages of old sugared call syntaxBrian Anderson-2/+2
2012-06-29Switch the compiler over to using ~[] notation instead of []/~. Closes #2759.Michael Sullivan-12/+12
2012-06-25Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.Michael Sullivan-12/+12
2012-06-02make vec fns/methods take imm slices.Niko Matsakis-14/+1
this also repairs the unsoundness in typing of unpack_slice, which was silently converting a const ptr to an imm one.
2012-05-21change list so that it must be used in a purely boxed fashionNiko Matsakis-7/+8
The old way was inconsistent---the head was unboxed but the tail was boxed. This resulted in numerous needless copies and also made the borrow check unhappy, because the head tended to be stored in mutable memory.
2012-05-21make list based on boxesNiko Matsakis-52/+39
2012-05-18avoid modifying the variable we are alting overNiko Matsakis-9/+6
2012-03-27Add vec::each, vec::eachi, and list::eachMarijn Haverbeke-0/+20
For use with the new for construct. Issue #1619
2012-03-26Bulk-edit mutable -> mut.Graydon Hoare-1/+1
2012-03-15std: Swap the argument order of list::foldl to match vec::foldlBrian Anderson-4/+4
2012-03-14annotate libstd and start enforcing mutabilityNiko Matsakis-5/+5
2012-03-12stdlib: Make list::find do what the docs say it does.Patrick Walton-7/+5
Talked on #rust about this change, got approval from graydon and brson. Will bring up tomorrow at meeting to verify.
2012-03-10Use loop instead of while(true) in libraries and compiler itselfTim Chevalier-9/+7
And remove spurious fails/unreachable() calls.
2012-03-09std: Convert to rustdocBrian Anderson-74/+21
2012-02-22Remove preconditions from librariesMarijn Haverbeke-11/+2
Closes #1805
2012-01-31Change option::t to optionTim Chevalier-4/+4
Now that core exports "option" as a synonym for option::t, search-and- replace option::t with option. The only place that still refers to option::t are the modules in libcore that use option, because fixing this requires a new snapshot (forthcoming).
2012-01-27Make occurs check in ty::fixup_vars more reliableMarijn Haverbeke-1/+1
It wouldn't detect cycles that went through several type vars before. Closes #1464
2012-01-23s/block()/fn()/gNiko Matsakis-3/+3
2012-01-19lib: ";" to "," in enumsPatrick Walton-2/+2
2012-01-19stdlib: "tag" -> "enum"Patrick Walton-1/+1
2012-01-18Remove '.' after nullary tags in patternsTim Chevalier-9/+9
Does what it says on the tin. The next commit will remove support for this syntax.
2012-01-17libstd: Move std tests into libstdBrian Anderson-0/+112
2012-01-05Switch to new param kind bound syntaxMarijn Haverbeke-9/+9
And remove support for the old syntax
2012-01-05Express some list primitives in a way that doesn't copyMarijn Haverbeke-20/+22
It was somewhat embarassing that list::len copied its elements.
2011-12-29list: use predicate to enforce non-empty requirementLenny222-4/+31
2011-12-16Merge pull request #1317 from boggle/fix1315Graydon Hoare-3/+3
fix to #1315 + small additions to std::either and result
2011-12-16std: declared fns as pure where sensibleStefan Plantikow-3/+3
2011-12-16reorder args to the various vec, option fns so blk comes lastNiko Matsakis-1/+1
2011-12-13Copy first batch of material from libstd to libcore.Graydon Hoare-0/+2
2011-12-06Establish 'core' library separate from 'std'.Graydon Hoare-0/+161