summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2013-06-24std::rt: deny(unused_unsafe)Brian Anderson-4/+5
2013-06-24std: Make unlinking and task notification work with newschedBrian Anderson-3/+44
2013-06-24std: Make box annihilator work with newschedBrian Anderson-131/+94
2013-06-24std: Move dynamic borrowck code from unstable::lang to rt::borrowckBrian Anderson-229/+294
2013-06-24std: Rewrite vec_reserve_shared_actual in RustBrian Anderson-25/+56
2013-06-24Merge remote-tracking branch 'reusee/master' into HEADBrian Anderson-2/+2
2013-06-24libc: (u)int => c_(u)int for constsFedor Indutny-750/+785
2013-06-24libc: add POSIX-compatible sysconf constsFedor Indutny-0/+254
Because its part of POSIX. Values are taken from FreeBSD, linux and OSX header files.
2013-06-24libc: support functions from sys/mman.hFedor Indutny-2/+269
Because its part of POSIX. Values are taken from FreeBSD, linux and OSX header files.
2013-06-24iterator: Add `IteratorUtil::flat_map_` methodblake2-ppc-0/+67
flat_map_ produces an iterator that maps each element to an iterator, and yields the elements of the produced iterators. This is the monadic bind :: M a -> (a -> M b) -> M b for iterators. Named just like the vec method, but with a trailing underline until the method resolution bug is resolved.
2013-06-24work around ICE from default methodDaniel Micay-2/+2
issue #7341
2013-06-24iterator: implement `collect` with FromIteratorDaniel Micay-5/+16
This makes it take advantage of the size hint for pre-allocation.
2013-06-24implement Clone for slicesDaniel Micay-0/+12
2013-06-24remove old_iterDaniel Micay-326/+15
the `test/run-pass/class-trait-bounded-param.rs` test was xfailed and written in an ancient dialect of Rust so I've just removed it this also removes `to_vec` from DList because it's provided by `std::iter::to_vec` an Iterator implementation is added for OptVec but some transitional internal iterator methods are still left
2013-06-23auto merge of #7279 : hanny24/rust/master, r=msullivanbors-0/+17
This commit adds filtered method for Option type. It is not exactly necessary (chain method can be used instead), however I believe that this approach using extra filtered method is more convinient.
2013-06-23Remove unused TyDesc parameter from the glue functionsPhilipp Brüschweiler-3/+34
To remove the environment pointer, support for function pointers without an environment argument is needed (i.e. a fixed version of #6661).
2013-06-23Remove rust_call_tydesc_gluePhilipp Brüschweiler-48/+8
Towards #4812. Also includes some minor cleanups.
2013-06-23Remove unused shape fields from typedescsPhilipp Brüschweiler-2/+0
2013-06-23Remove intrinsic modulePhilipp Brüschweiler-50/+195
To achieve this, the following changes were made: * Move TyDesc, TyVisitor and Opaque to std::unstable::intrinsics * Convert TyDesc, TyVisitor and Opaque to lang items instead of specially handling the intrinsics module * Removed TypeDesc, FreeGlue and get_type_desc() from sys Fixes #3475.
2013-06-23Fix get_tydesc() return typePhilipp Brüschweiler-0/+3
This fixes part of #3730, but not all. Also changes the TyDesc struct to be equivalent with the generated code, with the hope that the above issue may one day be closed for good, i.e. that the TyDesc type can completely be specified in the Rust sources and not be generated.
2013-06-23hashmap: add FIXME numberDaniel Micay-1/+1
2013-06-23std::to_str: Use .iter() for HashMap and HashSetblake2-ppc-2/+3
2013-06-23std::hashmap: Remove BaseIter impl for HashSetblake2-ppc-7/+6
Remove the BaseIter impl, while keeping the .each method until callers are converted.
2013-06-23std::hashmap: Use .iter() instead of .each and similarblake2-ppc-8/+7
2013-06-23std::hashmap: Add test_iterate for HashSetblake2-ppc-0/+14
2013-06-23std::hashmap: Implement external iterator for HashMap and HashSetblake2-ppc-12/+79
2013-06-23Split out starting a listener from accepting incoming connections.Eric Reed-112/+181
The Listener trait takes two type parameters, the type of connection and the type of Acceptor, and specifies only one method, listen, which consumes the listener and produces an Acceptor. The Acceptor trait takes one type parameter, the type of connection, and defines two methods. The accept() method waits for an incoming connection attempt and returns the result. The incoming() method creates an iterator over incoming connections and is a default method. Example: let listener = TcpListener.bind(addr); // Bind to a socket let acceptor = listener.listen(); // Start the listener for stream in acceptor.incoming() { // Process incoming connections forever (or until you break out of the loop) }
2013-08-27Add a variant of home_for_io that consumes the handle. Refactor out common ↵Eric Reed-48/+53
parts of the home_for_io variants.
2013-06-23vec: remove BaseIter implementationDaniel Micay-90/+88
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-22iterator: add a FromIterator traitDaniel Micay-2/+20
This is able to take advantage of the lower bound from the size hint.
2013-06-22iterator: add a size_hint default methodDaniel Micay-6/+70
also adds an implementation for the vector iterators
2013-06-22replaced some 'std::' with 'extra::' in commentsreus-2/+2
2013-06-22Finish up Type refactoringJames Miller-5/+5
2013-06-22Add the rest of the atomic operations.James Miller-0/+112
This makes the handling of atomic operations more generic, which does impose a specific naming convention for the intrinsics, but that seems ok with me, rather than having an individual case for each name. It also adds the intrinsics to the the intrinsics file.
2013-06-21std: Make console log off/on controls work with newschedBrian Anderson-8/+36
2013-06-21std::rt: Support os::argsBrian Anderson-11/+157
2013-06-21Added filtered method for Option typeHonza Strnad-0/+17
2013-06-21replace vec::find with the IteratorUtil methodDaniel Micay-42/+1
2013-06-21vec: replace `position` with `iter().position_`Daniel Micay-43/+5
2013-06-21vec: rm old_iter implementations, except BaseIterDaniel Micay-191/+49
The removed test for issue #2611 is well covered by the `std::iterator` module itself. This adds the `count` method to `IteratorUtil` to replace `EqIter`.
2013-06-21vec: remove eachiDaniel Micay-41/+0
replaced by the `enumerate` method from std::iterator
2013-06-21vec: remove each_constDaniel Micay-15/+0
An Iterator implementation can be made for &const [T] if it turns out to be necessary for some use case.
2013-06-20std: Port SharedChan to newschedBrian Anderson-15/+37
2013-06-20Make task_rng() return @mut R instead of @@mut RKevin Ballard-10/+6
2013-06-20Merge remote-tracking branch 'brson/io' into io-upstreamBrian Anderson-832/+3129
Conflicts: src/rt/rust_builtin.cpp src/rt/rustrt.def.in
2013-06-20std::rt: WhitespaceBrian Anderson-2/+2
2013-06-20auto merge of #7128 : yichoi/rust/fix_sometc, r=brsonbors-2/+78
- Fix stat struct for Android (found by SEGV at run-pass/stat.rs) - Adjust some test cases to rpass for Android - Modify some script to rpass for Android
2013-06-20Merge remote-tracking branch 'brson/io-wip' into ioBrian Anderson-23/+66
2013-06-20Merge remote-tracking branch 'upstream/io' into ioEric Reed-83/+249
2013-06-21libstd: cleanup warningsJames Miller-27/+9