summary refs log tree commit diff
path: root/src/libstd/os.rs
AgeCommit message (Collapse)AuthorLines
2013-06-30auto merge of #7487 : huonw/rust/vec-kill, r=cmrbors-2/+2
Continuation of #7430. I haven't removed the `map` method, since the replacement `v.iter().transform(f).collect::<~[SomeType]>()` is a little ridiculous at the moment.
2013-06-30Convert vec::{rposition, rposition_elem, position_elem, contains} to methods.Huon Wilson-2/+2
2013-06-30simplify the exchange allocatorDaniel Micay-3/+3
* stop using an atomic counter, this has a significant cost and valgrind will already catch these leaks * remove the extra layer of function calls * remove the assert of non-null in free, freeing null is well defined but throwing a failure from free will not be * stop initializing the `prev`/`next` pointers * abort on out-of-memory, failing won't necessarily work
2013-06-29'Borrow' stack closures rather than copying them (e.g., "|x|f(x)"), in prep ↵Ben Blum-1/+1
for making them noncopyable.
2013-06-28librustc: Fix even *MORE* merge fallout!Patrick Walton-1/+1
2013-06-28Rewrite each_path to allow performance improvements in the future.Patrick Walton-1/+5
Instead of determining paths from the path tag, we iterate through modules' children recursively in the metadata. This will allow for lazy external module resolution.
2013-06-27auto merge of #7430 : huonw/rust/vec-kill, r=thestingerbors-4/+3
2013-06-28Convert vec::{push, push_all, push_all_move} to methods.Huon Wilson-3/+2
2013-06-27Convert vec::[mut_]slice to methods, remove vec::const_slice.Huon Wilson-1/+1
2013-06-27auto merge of #7361 : brson/rust/incoming, r=brsonbors-1/+1
2013-06-25Merge remote-tracking branch 'mozilla/master' into incomingBrian Anderson-1/+1
Conflicts: src/librustc/middle/astencode.rs src/librustc/middle/check_const.rs
2013-06-25Deny common lints by default for lib{std,extra}Alex Crichton-13/+8
2013-06-24Merge remote-tracking branch 'reusee/master' into HEADBrian Anderson-1/+1
2013-06-24libc: (u)int => c_(u)int for constsFedor Indutny-1/+1
2013-06-23vec: remove BaseIter implementationDaniel Micay-6/+7
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-22replaced some 'std::' with 'extra::' in commentsreus-1/+1
2013-06-21libstd: cleanup warningsJames Miller-6/+4
2013-06-16auto merge of #7123 : huonw/rust/more-str, r=thestingerbors-1/+1
Moves all the remaining functions that could reasonably be methods to be methods, except for some FFI ones (which I believe @erickt is working on, possibly) and `each_split_within`, since I'm not really sure the details of it (I believe @kimundi wrote the current implementation, so maybe he could convert it to an external iterator method on `StrSlice`, e.g. `word_wrap_iter(&self) -> WordWrapIterator<'self>`, where `WordWrapIterator` impls `Iterator<&'self str>`. It probably won't be too hard, since it's already a state machine.) This also cleans up the comparison impls for the string types, except I'm not sure how the lang items `eq_str` and `eq_str_uniq` need to be handled, so they (`eq_slice` and `eq`) remain stand-alone functions.
2013-06-15fix testDaniel Micay-3/+4
2013-06-16std: convert str::to_utf16 to a method.Huon Wilson-1/+1
2013-06-12std: unify the str -> [u8] functions as 3 methods: .as_bytes() and ↵Huon Wilson-2/+2
.as_bytes_with_null[_consume](). The first acts on &str and is not nul-terminated, the last two act on strings that are always null terminated (&'static str, ~str and @str).
2013-06-11option: remove redundant old_iter implsDaniel Micay-1/+1
2013-06-10std: remove str::{len, slice, is_empty} in favour of methods.Huon Wilson-6/+7
2013-06-10std: replace str::each_split* with an iteratorHuon Wilson-3/+3
2013-06-08rm some uses of to_mut_unsafe_ptrDaniel Micay-1/+1
2013-05-30Remove a bunch of unnecessary allocations and copiesBjörn Steinbrink-3/+2
2013-05-30Require documentation by default for libstdAlex Crichton-2/+28
Adds documentation for various things that I understand. Adds #[allow(missing_doc)] for lots of things that I don't understand.
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-0/+2
2013-05-29librustc: Redo the unsafe checker and make unsafe methods not callable from ↵Patrick Walton-13/+11
safe code
2013-05-28Silence various warnings throughout test modulesAlex Crichton-2/+2
2013-05-27Refactor core::run in order to address many of the issuesgareth-1/+1
mentioned in #2625. This change makes the module more oriented around Process values instead of having to deal with process ids directly. Apart from issues mentioned in #2625, other changes include: - Changing the naming to be more consistent - Process/process is now used instead of a mixture of Program/program and Process/process. - More docs/tests. Some io/scheduler related issues remain (mentioned in #2625).
2013-05-25testsuite: Add a test for listing the root directory...Tim Chevalier-1/+15
...and don't treat Path("/") like Path("").
2013-05-25core: Fail with a better error message when list_dir gets an empty pathTim Chevalier-0/+11
(Yes, this did happen in real life...)
2013-05-23cleanup warnings from libstdErick Tryzelaar-23/+23
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+1670
This only changes the directory names; it does not change the "real" metadata names.