summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
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
2013-07-20auto merge of #7908 : anasazi/rust/fix_udp_mut, r=brsonbors-82/+81
2013-07-20std: Implement Clone for VecIterator and iterators using itblake2-ppc-0/+26
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. VecIterator needs a manual impl to handle the lifetime struct member.
2013-07-20iterator: Add test for .cycle()blake2-ppc-0/+14
2013-07-20iterator: Let closure-less iterators derive Cloneblake2-ppc-0/+8
2013-07-20iterator: Add .cycle() to repeat an iteratorblake2-ppc-0/+49