summary refs log tree commit diff
path: root/src/libcore/vec.rs
AgeCommit message (Collapse)AuthorLines
2012-10-11Export VecUnboxedRepr from vec so a test case can use itTim Chevalier-7/+7
2012-10-11Fix from_buf in test casesTim Chevalier-2/+2
2012-10-11Remove comment that is now falseTim Chevalier-18/+32
2012-10-05Finally removing all uses of by-mut-refTim Chevalier-46/+0
The code for the mode itself is still there.
2012-10-05Demode some code using by-mutbl-ref; warn about by-mutbl-refTim Chevalier-1/+48
The parser now warns about use of mutbl-ref mode, though it's kind of a lie since this commit doesn't remove support for the mode. Changed move_val_init to have stage0 and stage1/2 versions, the latter of which is demoded. Changed the type that the typechecker expects the move_val_init intrinsic to have. After this is pushed, I can make a new snapshot, which will remove the need for the stage0 versions.
2012-10-04Fix FIXME that's no longer blocked by #2611Tim Chevalier-4/+3
2012-10-04Forbid deprecated modes again in coreTim Chevalier-2/+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-48/+48
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-01rename vec::raw::form_slice to buf_as_sliceErick Tryzelaar-2/+3
This matches the str::raw function.
2012-10-01De-export vec. Part of #3583.Graydon Hoare-238/+139
2012-10-01Move over to calling ptr::addr_ofTim Chevalier-1/+1
Everything should now call ptr::addr_of instead of ptr::p2::addr_of. Only the pipes macro code when compiled by stage0 will call ptr::p2::addr_of. Needs a snapshot to get rid of that.
2012-09-28Add a demoded version of ptr::addr_ofTim Chevalier-13/+13
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-28Demode iter::foldl and friendsTim Chevalier-6/+6
2012-09-28core: Demode the vec::foldr methodBrian Anderson-2/+2
2012-09-28Demoding in iter: any, all, map_to_vec, flat_map_to_vec, filter_to_vecTim Chevalier-6/+6
2012-09-28core: Demode patternsBrian Anderson-2/+3
2012-09-28rename iter2 to each2, make it follow iterator protocolNiko Matsakis-3/+5
2012-09-28demode vecNiko Matsakis-229/+301
2012-09-27core: Add failure tests for higher-order vec functionsBrian Anderson-0/+539
2012-09-26change vec::view sig to be sound (good catch @bblum)Niko Matsakis-5/+6
2012-09-26Merge pull request #3526 from Dretch/viewmethodBrian Anderson-4/+6
Make vec::view a method too.
2012-09-26core: Replace map/map_default with map_ref/map_default_refBrian Anderson-2/+2
2012-09-26Demode vec::push (and convert to method)Niko Matsakis-76/+113
2012-09-25Demode iter-traitTim Chevalier-3/+3
2012-09-25use + mode for (almost) everything when not using legacy modesNiko Matsakis-1/+1
2012-09-23Register snapshots. Remove redundant Eq impls, Makefile hacksBrian Anderson-86/+0
2012-09-23core: Demode optionBrian Anderson-2/+2
2012-09-23Make it illegal to use modes in a fn signature with providingNiko Matsakis-7/+8
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-117/+93
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-1/+8
#[legacy_exports];
2012-09-20rustc: De-mode all overloaded operatorsPatrick Walton-9/+100
2012-09-19demode the each() method on vec and other iterables.Niko Matsakis-2/+2
2012-09-19Remove final bits of residual hokey-hash functions. Close #1616.Graydon Hoare-6/+0
2012-09-19De-mode vec::each() and many of the str iteration routinesNiko Matsakis-172/+47
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-24/+136
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-136/+24
2012-09-18core: Rename 'unsafe' mod to 'cast'Brian Anderson-19/+19
2012-09-18core: Move Exclusive and SharedMutableState to the private modBrian Anderson-2/+2
2012-09-18Make vec::view a method too.Gareth Daniel Smith-4/+6
2012-09-18Replace uses of 'unchecked' with 'unsafe'Brian Anderson-19/+19
2012-09-15vec::u8 => vec::bytes (#3444)Erick Tryzelaar-2/+2
2012-09-14Add core::reflect, start migrating core::repr to use it. Tidy up various ↵Graydon Hoare-11/+17
Repr types.
2012-09-13Fix implicit-instantiation of non-implicitly-copyable warnings.Graydon Hoare-3/+3
2012-09-13s/vec::as_buf/vec::as_imm_buf/, fix comment, remove set.rsNiko Matsakis-19/+18
hat tip to @jruderman
2012-09-13make iter::position() not require EqNiko Matsakis-3/+3
2012-09-12Rename vec::unsafe to vec::rawBrian Anderson-33/+33
2012-09-12fixup mutability of vec::each, make iter_bytes pureNiko Matsakis-43/+98
also, change DVec() to work with imm vectors rather than mut ones
2012-09-11Make moves explicit in argumentsTim Chevalier-4/+4
2012-09-11Merge pull request #3440 from jld/vec-dedupBrian Anderson-0/+81
Add vec::dedup for in-place consecutive duplicate element removal.
2012-09-10Make moves explicit in task; also make option::unwrap take its argument by moveTim Chevalier-1/+1