summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2013-07-25libstd: Implement some missing tcp methods.Luqman Aden-15/+72
2013-07-25libstd: Add ToStr impl for IpAddr.Luqman Aden-0/+42
2013-07-25Added default impls for container methodsSteven Fackler-53/+12
A couple of implementations of Container::is_empty weren't exactly self.len() == 0 so I left them alone (e.g. Treemap).
2013-07-25auto merge of #8030 : thestinger/rust/iterator, r=huonwbors-3/+0
2013-07-25libstd: Get rid of duplication in {peer, socket}_name and remove extra *.Luqman Aden-103/+49
2013-07-25auto merge of #8026 : poiru/rust/issue-8024, r=alexcrichtonbors-4/+11
Closes #8024.
2013-07-25auto merge of #8015 : msullivan/rust/default-methods, r=nikomatsakisbors-1/+24
Lots of changes to vtable resolution, handling of super/self method calls in default methods. Fix a lot of trait inheritance bugs. r? @nikomatsakis
2013-07-25libstd: Handle IPv4-Mapped/Compatible IPv6 addresses.Luqman Aden-1/+30
2013-07-25libstd: Fix errors when rtdebug! is not a noop.Luqman Aden-5/+5
2013-07-25libstd: Implement {peer, socket}_name for new rt tcp & udp.Luqman Aden-69/+202
2013-07-25Added some more atomic operations.Gábor Horváth-2/+184
2013-07-24Convert uses of transmute which don't need itAlex Crichton-18/+16
2013-07-24auto merge of #7931 : blake2-ppc/rust/chain-mut-ref, r=pcwaltonbors-12/+23
First, clean up the uses of "None" and "Some" to always use consistent title case matching the variant names. Add .chain_mut_ref() which is a missing method. A use case example for this method is extraction of an optional value from an Option\<Container\> value.
2013-07-24rm default method lintDaniel Micay-3/+0
default methods are enabled by default, so there's not much point in keeping around a lint to report them as being experimental
2013-07-24auto merge of #7996 : erickt/rust/cleanup-strs, r=ericktbors-315/+258
This is a cleanup pull request that does: * removes `os::as_c_charp` * moves `str::as_buf` and `str::as_c_str` into `StrSlice` * converts some functions from `StrSlice::as_buf` to `StrSlice::as_c_str` * renames `StrSlice::as_buf` to `StrSlice::as_imm_buf` (and adds `StrSlice::as_mut_buf` to match `vec.rs`. * renames `UniqueStr::as_bytes_with_null_consume` to `UniqueStr::to_bytes` * and other misc cleanups and minor optimizations
2013-07-24Implement std::num::Zero for boolBirunthan Mohanathas-4/+11
Closes #8024.
2013-07-24std: str.as_bytes_with_null_consume() => str.to_bytes_with_null()Erick Tryzelaar-1/+1
2013-07-24auto merge of #7982 : thestinger/rust/iterator, r=thestingerbors-94/+276
f0f4dcc r=huonw 25e9c4c r=graydon a87c2d1 r=brson 16f369d r=cmr 9f05cc8 r=bstrie e858055 r=huonw 5d80938 r=thestinger 05d03e7 r=cmr 8f86fa3 r=thestinger
2013-07-24fix compilation on macos/windowsDaniel Micay-1/+2
2013-07-24ToStr for HashMap does not need value to implement Eq or HashStepan Koltsov-6/+18
2013-07-24std:rt: args module is not used by win/mac. #7951Brian Anderson-69/+123
2013-07-24Change 'print(fmt!(...))' to printf!/printfln! in src/lib*Birunthan Mohanathas-18/+18
2013-07-24add a RandomAccessIterator traitDaniel Micay-2/+117
2013-07-24auto merge of #7993 : Xazax-hun/rust/master, r=bblumbors-0/+12
Added missing memory orderings for atomic types. https://github.com/mozilla/rust/issues/7422
2013-07-23auto merge of #7980 : graydon/rust/misc-benchmarks, r=catamorphismbors-1/+237
Some machinery for enabling #[bench] benchmarks in std and some examples showing how to write them.
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