summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2012-03-28Update crate URLs to point to interesting things.Graydon Hoare-1/+1
2012-03-27Move some code over to iterator-for to see how it performs.Marijn Haverbeke-15/+25
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-129/+129
2012-03-26Disallow ret inside of block functionsMarijn Haverbeke-4/+4
Also adds proper checking for cont/break being inside a loop. Closes #1854 Issue #1619
2012-03-23Implement new inference algorithm.Niko Matsakis-0/+1
2012-03-23Fix inconsistent-iteration hazard in map.rsMarijn Haverbeke-6/+10
Closes #2049
2012-03-22Bump version numbers to 0.2Brian Anderson-1/+1
2012-03-22make --enforce-mut-vars always on, add mut annotations to remaining filesNiko Matsakis-30/+30
2012-03-21Adjust arena definition to be compatible with placement newNiko Matsakis-6/+13
2012-03-20stdlib: Implement arenasPatrick Walton-1/+40
2012-03-20core: Rename unsafe::leak to unsafe::forget. Closes #2031Brian Anderson-2/+2
2012-03-19Properly check kinds when instantiating typesMarijn Haverbeke-4/+4
Closes #2011
2012-03-16core: Store reexporting result and either. Closes #1997Brian Anderson-1/+2
2012-03-16std: Add a a hashmap_from_vecs functionErick Tryzelaar-4/+52
2012-03-16Check kind bounds when calling methodsMarijn Haverbeke-4/+5
Closes #1915
2012-03-15std: Swap the argument order of list::foldl to match vec::foldlBrian Anderson-4/+4
2012-03-15std: Follow conventions in bitvBrian Anderson-48/+53
2012-03-14std: Rename the hashmap constructors to conform to new standardsBrian Anderson-33/+31
Instead of using the new_ prefix just name them after their type
2012-03-14fixup auto_serialize's treatment of nullary variantsNiko Matsakis-3/+3
2012-03-14allow immut vars to be moved. enforce mut vars after stage0 in std.Niko Matsakis-4/+4
2012-03-14annotate libstd and start enforcing mutabilityNiko Matsakis-137/+144
2012-03-14fix auto_serialize for enums with type parametersNiko Matsakis-0/+148
2012-03-14adjust auto_serialize to generate fns named serialize_T()Niko Matsakis-10/+120
We used to generate a module T with a serialize() and deserialize() fn, but this was suboptimal for a number of reasons: - it required moving serialization into core so that uint etc worked - it was harder to override the serialization behavior locally (this is now trivial)
2012-03-13implement deserialization, rename mk_mem_buffer() to mem_buffer()Niko Matsakis-1/+6
2012-03-13first (functional) version of the auto_serialize syntax extNiko Matsakis-414/+450
2012-03-13Name types after their modules instead of 't'Brian Anderson-83/+88
2012-03-13Overhaul constructor naming in libsBrian Anderson-58/+56
2012-03-12Libc/os/run/rand/io reorganization. Close #1373. Close #1638.Graydon Hoare-2997/+42
- Move io, run and rand to core. - Remove incorrect ctypes module (use libc). - Remove os-specific modules for os and fs. - Split fs between core::path and core::os.
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-12std: Sort test failures. Closes #1929Brian Anderson-15/+57
2012-03-10Fix Windows build breakageTim Chevalier-1/+1
2012-03-10Use loop instead of while(true) in libraries and compiler itselfTim Chevalier-44/+34
And remove spurious fails/unreachable() calls.
2012-03-10core: Remove the nearly empty math moduleBrian Anderson-1/+1
This mod only had two functions, all of whose users have been changed to use the uint module.
2012-03-09std: Convert to rustdocBrian Anderson-1565/+708
2012-03-09Add an infinite loop constructTim Chevalier-31/+31
Add a loop {} construct for infinite loops, and use it in test cases. See #1906 for details.
2012-03-08Rename last to last_opt, last_unsafe to lastTim Chevalier-1/+1
As per discussion on IRC. I am about to file an RFC for further discussion about the more general issue of whether to enforce invariants through types, typestate, or dynamic checks, but for now, removing the misleading name "last_unsafe".
2012-03-08Change util::unreachable to core::unreachableTim Chevalier-19/+8
Closes #1931
2012-03-08Rename last_total to last_unsafeTim Chevalier-1/+2
See Issue 1943 for any discussion (reopen it if necessary). Closes #1943
2012-03-07stdlib: Stop incurring vtable dispatch costs when hashmaps are usedPatrick Walton-33/+37
This required changing almost all users of hashmaps to import the hashmap interface first. The `size` member in the hashmap structure was renamed to `count` to work around a name conflict.
2012-03-07Revert "stdlib: Stop incurring vtable dispatch costs when hashmaps are used"Patrick Walton-37/+33
This reverts commit f0250a23d3fa2f8b4a4a4113ca89e41945a4cfed.
2012-03-07stdlib: Stop incurring vtable dispatch costs when hashmaps are usedPatrick Walton-33/+37
This required changing almost all users of hashmaps to import the hashmap interface first. The `size` member in the hashmap structure was renamed to `count` to work around a name conflict.
2012-03-05std: Use util::unreachableBrian Anderson-7/+7
2012-03-05Remove dead code from rt (debug_obj, rust_obj, rust_closure, rust_box_obj, ↵Graydon Hoare-16/+0
rust_vtable)
2012-03-05std: export json::error.Erick Tryzelaar-0/+1
2012-03-02std: add a fs::remove_file function.Erick Tryzelaar-0/+25
2012-03-02comp/std: rename io::string_reader to io::str_reader.Erick Tryzelaar-5/+5
2012-03-02std: add a io::with_str_reader fn to remove a str copyErick Tryzelaar-8/+25
2012-03-02core: Remove _mut functions from vecBrian Anderson-14/+14
Instead, use vec::to_mut/from_mut to transform vectors in place as needed.
2012-03-02std: vec::to_ptr -> vec::unsafe::to_ptrBrian Anderson-1/+1