summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2013-07-23Fix some impls such that all supertraits are actually implemented.Michael Sullivan-1/+7
2013-07-23Add a to_owned_vec method to IteratorUtil.Michael Sullivan-0/+17
2013-07-23std: make str::append move selfErick Tryzelaar-6/+5
This eliminates a copy and fixes a FIXME.
2013-07-23std: inline str::with_capacity and vec::with_capacityErick Tryzelaar-5/+4
2013-07-23std: simplify str::as_imm_buf and vec::as_{imm,mut}_bufErick Tryzelaar-12/+6
2013-07-23str: move as_mut_buf into OwnedStr, and make it `self`Erick Tryzelaar-18/+18
2013-07-23std: remove a malloc from os::fill_charp_bufErick Tryzelaar-3/+2
2013-07-23std: remove str::to_owned and str::raw::slice_bytes_ownedErick Tryzelaar-42/+23
2013-07-23std: rename str.as_buf to as_imm_buf, add str.as_mut_bufErick Tryzelaar-67/+61
2013-07-23std and extra: use as_c_str instead of as_buf in a couple placesErick Tryzelaar-19/+11
These uses are assuming the strings are null terminated, so it should be using `as_c_str` instead of `as_buf`
2013-07-23std: add test for str::as_c_strErick Tryzelaar-1/+22
2013-07-23std: move StrUtil::as_c_str into StrSliceErick Tryzelaar-103/+73
2013-07-23std: move str::as_buf into StrSliceErick Tryzelaar-60/+60
2013-07-23std: remove os::as_c_charpErick Tryzelaar-44/+39
2013-07-23std: rename str.as_bytes_with_null_consume to str.to_bytes_with_nullErick Tryzelaar-7/+6
2013-07-23std: wrap "long" utf8 lines.Graydon Hoare-2/+4
2013-07-23Added missing memory orderings for atomic types.Gábor Horváth-0/+12
2013-07-22auto merge of #7875 : sstewartgallus/rust/fubar, r=alexcrichtonbors-11/+5
2013-07-22auto merge of #7916 : olsonjeffery/rust/newrt_timer, r=brsonbors-0/+137
My first bit of newsched IO work. Pretty simple and limited in scope. the RtioTimer trait only has a `sleep(msecs: u64)` method, for now. Taking requests on what else ought to be here. oh yeah: this resolves #6435
2013-07-22std: various additional language benchmarks in util.Graydon Hoare-0/+65
2013-07-22std: add benchmark for allocating-and-dropping a struct with a dtor.Graydon Hoare-0/+25
2013-07-22std: add #[bench] benchmarks for num::strconvGraydon Hoare-0/+24
2013-07-22std: add #[bench] benchmarks for rand.Graydon Hoare-1/+35
2013-07-22std: add #[bench] benchmarks for global and local heaps.Graydon Hoare-0/+38
2013-07-22std: add preliminary str benchmark.Graydon Hoare-0/+45
2013-07-22std: add #[cfg(test)] reference to extra so we can benchmark libstd.Graydon Hoare-0/+3
2013-07-22auto merge of #7883 : brson/rust/rm-std-net, r=graydonbors-624/+50
This removes all the code from libextra that depends on libuv. After that it removes three runtime features that existed to support the global uv loop: weak tasks, runtime-global variables, and at_exit handlers. The networking code doesn't have many users besides servo, so shouldn't have much fallout. The timer code though is useful and will probably break out-of-tree code until the new scheduler lands, but I expect that to be soon. It also incidentally moves `os::change_dir_locked` to `std::unstable`. This is a function used by test cases to avoid cwd races and in my opinion shouldn't be public (#7870). Closes #7251 and #7870
2013-07-22std: fix for blocked task resumeJeff Olson-2/+2
2013-07-22std: Remove at_exit API. UnusedBrian Anderson-102/+0
2013-07-22std: Remove unstable::global. UnusedBrian Anderson-282/+0
2013-07-22std: Move change_dir_locked to unstable. #7870Brian Anderson-40/+50
2013-07-22std::rt: Stop using unstable::global in change_dir_lockedBrian Anderson-14/+26
2013-07-22std: Remove weak_task API. UnusedBrian Anderson-212/+0
2013-07-22auto merge of #7943 : Dretch/rust/vec-slice-from-to, r=huonwbors-3/+47
2013-07-22std: make check appeasementJeff Olson-6/+7
2013-07-22std: minor timer cleanup based on feedbackJeff Olson-5/+5
2013-07-22std: add rt::io::TimerJeff Olson-0/+67
2013-07-22std: add RtioTimer and UvTimer impl atop rt::uvJeff Olson-0/+69
2013-07-22auto merge of #7942 : Dretch/rust/os-listdir-path-no-squiggle, r=brsonbors-2/+2
2013-07-22new snapshotDaniel Micay-607/+12
2013-07-21Minor cleanup of hashmapSteven Stewart-Gallus-11/+5
2013-07-21Merge pull request #7936 from thestinger/cleanupDaniel Micay-2/+0
rm obsolete no-op lints
2013-07-21auto merge of #7932 : blake2-ppc/rust/str-clear, r=huonwbors-1/+51
~str and @str need separate implementations for use in generic functions, where it will not automatically use the impl on &str. fixes issue #7900
2013-07-21Remove what appears to be redundant indirection fromGareth Smith-2/+2
os::list_dir_path.
2013-07-21Add slice_from and slice_to methods for vec, like theGareth Smith-3/+47
methods of the same names that already exist for strs.
2013-07-20auto merge of #7896 : pcwalton/rust/pub-extern, r=pcwaltonbors-553/+664
r? @nikomatsakis
2013-07-20librustc: Remove `pub extern` and `priv extern` from the language.Patrick Walton-553/+664
Place `pub` or `priv` on individual items instead.
2013-07-20rm obsolete no-op lintsDaniel Micay-2/+0
2013-07-20auto merge of #7882 : blake2-ppc/rust/iterator-clone, r=thestingerbors-0/+97
Implement method .cycle() that repeats an iterator endlessly Implement Clone for simple iterators (without closures), including VecIterator. > The theory is simple, the immutable iterators simply hold state > variables (indicies or pointers) into frozen containers. We can freely > clone these iterators, just like we can clone borrowed pointers.
2013-07-20auto merge of #7910 : brson/rust/rm-fixme, r=graydonbors-5/+0