summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
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-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-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-20Make task_rng() return @mut R instead of @@mut RKevin Ballard-10/+6
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-21libstd: cleanup warningsJames Miller-27/+9
2013-06-21Remove all #[cfg(stage0)]-protected codeJames Miller-98/+9
New snapshot means this can all go. Also removes places that have comments that say they are workarounds for stage0 errors.
2013-06-20ignore inherited environment test under valgrind r=snapshotJames Miller-0/+1
2013-06-18std::rt: Work around a dynamic borrowck bugBrian Anderson-3/+2
2013-06-18std: Work around some failing 'run' tests when valgrinding. #7224Brian Anderson-5/+25
Under valgrind on 64->32 cross compiles the dynamic linker is emitting some error messages on stderr, which interferes with the tests that are checking stderr.
2013-06-18replace #[inline(always)] with #[inline]. r=burningtree.Graydon Hoare-1156/+1156
2013-06-17auto merge of #7197 : rkbodenner/rust/doc-for-lib-move, r=brsonbors-17/+18
Was updating some code of mine to use the new `std`/`extra` library names, and noticed a place where docs for `std::libc` hadn't been updated. Then I updated some top-level docs for the new libraries' names, too.
2013-06-17auto merge of #7131 : Blei/rust/windows-dynamic-lib, r=graydonbors-21/+33
The code compiles and runs under windows now, but I couldn't look up any symbol from the current executable (dlopen(NULL)), and calling looked up external function handles doesn't seem to work correctly under windows. This the beginning of a fix for #7095.
2013-06-17auto merge of #7199 : Kimundi/rust/master, r=bstriebors-25/+91
- Fixed tests - Added methods - Renamed casting methods to be shorter - Added unsafe versions Closes #7150
2013-06-17auto merge of #7195 : brson/rust/timertest, r=bstriebors-2/+2
2013-06-17std: fix stat struct of android (SEGV error from run-pass/stat.rs on android)Young-il Choi-2/+78
2013-06-17Improved std::asciiMarvin Löbel-25/+91
- Fixed tests - Added methods - Renamed casting methods to be shorter closes #7150
2013-06-17auto merge of #7198 : huonw/rust/slice-zeros, r=Aatchbors-0/+42
2013-06-17Reproduce text changes from @brson PR 7176 and fix a typo thereinRalph Bodenner-14/+15
2013-06-17std: add Zero impls for &[] and &str.Huon Wilson-0/+42
2013-06-16Update doc references to new names for std, extra, and std::libcRalph Bodenner-4/+4
2013-06-16std::rt: Reduce the delay on a timer test. SlowBrian Anderson-2/+2
2013-06-16auto merge of #7177 : huonw/rust/unfold-fix, r=thestingerbors-2/+2