summary refs log tree commit diff
path: root/src/libcore/iter.rs
AgeCommit message (Collapse)AuthorLines
2012-10-04Forbid deprecated modes again in coreTim Chevalier-0/+3
Sadly, there's only one file that requires deprecated modes (stackwalk)... So, forbid them everywhere else.
2012-10-02Removing explicit uses of + modeTim Chevalier-14/+13
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-32/+42
2012-09-28Add a demoded version of ptr::addr_ofTim Chevalier-9/+9
Currently, the new version is ptr::p2::addr_of and the old one is ptr::addr_of. This is kind of cheesy, but I need a snapshot before I can ditch the old version, since the pipe compiler generates calls to addr_of. core is converted over to use the new version, std is not.
2012-09-28Finish demoding iter: from_elem, copy_seq, map, appendTim Chevalier-7/+7
2012-09-28Squash a couple pattern warnings that I missedTim Chevalier-3/+3
2012-09-28Demode iter::foldl and friendsTim Chevalier-23/+18
2012-09-28Demoding in iter: any, all, map_to_vec, flat_map_to_vec, filter_to_vecTim Chevalier-13/+13
2012-09-28core: Demode patternsBrian Anderson-4/+6
2012-09-27core: More option demodingBrian Anderson-2/+2
2012-09-26core: Replace map/map_default with map_ref/map_default_refBrian Anderson-1/+1
2012-09-26Revert "Revert "libcore: De-mode at_vec""Patrick Walton-1/+1
This reverts commit fe09451a5a34931e11fa67ee83ac8deaa8d585be.
2012-09-25Demode iter-traitTim Chevalier-11/+11
2012-09-25Revert "libcore: De-mode at_vec"Tim Chevalier-1/+1
This reverts commit ab6318803e1764e6e894441c2829f9b47acbf298.
2012-09-25libcore: De-mode at_vecPatrick Walton-1/+1
2012-09-23Make it illegal to use modes in a fn signature with providingNiko Matsakis-3/+3
an explicit variable name. (Step one to changing the defaults) First step to #3535
2012-09-21De-mode vec::map, vec::eachi, vec::rev_each, vec::rev_eachiNiko Matsakis-6/+6
2012-09-19demode the each() method on vec and other iterables.Niko Matsakis-16/+16
2012-09-19core: Clean up crate docs and give all mods a brief descriptionBrian Anderson-0/+6
2012-09-19De-mode vec::each() and many of the str iteration routinesNiko Matsakis-143/+0
Note that the method foo.each() is not de-moded, nor the other vec routines.
2012-09-13make iter::position() not require EqNiko Matsakis-2/+3
2012-09-10rustc: Make shape-based compare glue never called for comparison operators.Patrick Walton-1/+1
Only called for string patterns.
2012-09-10Make more moves explicit in libcoreTim Chevalier-1/+1
2012-09-07Convert all kind bounds to camel case. Remove send, owned keywords.Brian Anderson-12/+12
2012-09-02core: deny(vecs_implicity_copyable)Brian Anderson-1/+1
2012-08-29rustc: Make `<` and `=` into traitsPatrick Walton-4/+12
2012-08-26Camel case the option typeBrian Anderson-24/+24
2012-08-24Add a Buildable interface for constructing general sequences. Work on #2921.Michael Sullivan-0/+122
2012-08-23`m1!{...}` -> `m1!(...)`Paul Stansifer-3/+3
2012-08-23Make a bunch more of the iteration functions/methods marked pure. Closes #3253.Michael Sullivan-46/+53
2012-08-15Convert more core types to camel caseBrian Anderson-18/+18
2012-08-06Convert alt to match. Stop parsing altBrian Anderson-4/+4
2012-08-05Switch alts to use arrowsBrian Anderson-8/+8
2012-08-01Convert ret to returnBrian Anderson-14/+14
2012-07-31Change remaining "iface" occurrences to "trait"; deprecate "iface"Lindsey Kuper-3/+3
2012-07-30Change syntax extension syntax: `#m[...]` -> `m!{...}`.Paul Stansifer-3/+3
2012-07-24Add `5.timesi() |idx| { ... }`Paul Stansifer-0/+3
2012-07-17rustc: Implement and enforce instance coherencePatrick Walton-0/+10
2012-07-14Move the world over to using the new style string literals and types. Closes ↵Michael Sullivan-2/+2
#2907.
2012-07-11core: Newtype a bunch of types in libcorePatrick Walton-0/+9
2012-07-05A new `times` method on numeric typesBen Striegel-0/+4
This method is intended to elegantly subsume two common iteration functions. The first is `iter::range`, which is used identically to the method introduced in this commit, but currently works only on uints. The second is a common case of `{int, i8, uint, etc.}::range`, in the case where the inductive variable is ignored. Compare the usage of the three: ``` for iter::range(100u) { // do whatever } for int::range(0, 100) |_i| { // do whatever } for 100.times { // do whatever } ``` I feel that the latter reads much more nicely than the first two approaches, and unlike the first two the new method allows the user to ignore the specific type of the number (ineed, if we're throwing away the inductive variable, who cares what type it is?). A minor benefit is that this new method will be somewhat familiar to users of Ruby, from which we borrow the name "times".
2012-07-03core: Convert iter::repeat to the for protocolBrian Anderson-2/+2
2012-07-01Convert to new closure syntaxBrian Anderson-16/+16
2012-06-30Eliminate usages of old sugared call syntaxBrian Anderson-5/+5
2012-06-29Switch the compiler over to using ~[] notation instead of []/~. Closes #2759.Michael Sullivan-32/+32
2012-06-28Add position() to iter/iter-traitBen Blum-0/+14
2012-06-27Removed pretty much all the vector+ from core (issue #2719)Eric Holk-1/+1
2012-06-25Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.Michael Sullivan-32/+32
2012-06-21Tag all remaining FIXMEs with bugs. Install rule in tidy script to enforce this.Graydon Hoare-4/+4
2012-06-07Use #[cfg(unix)] and #[cfg(windows)] everywhereBrian Anderson-2/+2