summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2013-07-27cleanup .map and .map_errErick Tryzelaar-40/+33
2013-07-27cleanup .get and .get_errmaikklein-36/+29
2013-07-27cleanup .chain and .chain_err + fixing other filesmaikklein-68/+41
2013-07-27cleanup .unwrap and .unwrap_err fixing io testsErick Tryzelaar-23/+16
2013-07-27cleanup .iter and .iter_errErick Tryzelaar-47/+48
2013-07-27cleanup get_refErick Tryzelaar-17/+14
2013-07-27Fix nits.Steven Stewart-Gallus-9/+7
2013-07-27Change concurrency primitives to standard naming conventionsSteven Stewart-Gallus-70/+72
To be more specific: `UPPERCASETYPE` was changed to `UppercaseType` `type_new` was changed to `Type::new` `type_function(value)` was changed to `value.method()`
2013-07-27auto merge of #8076 : omasanori/rust/cleanup, r=huonwbors-5/+0
A cleanup suggested on #7922.
2013-07-27auto merge of #7864 : brson/rust/start-on-main-thread, r=brsonbors-10/+61
Applications that need to use the GUI can override start and set up the runtime using this function.
2013-07-27std::rt: Add start_on_main_thread functionBrian Anderson-10/+61
Applications that need to use the GUI can override start and set up the runtime using this function.
2013-07-27auto merge of #8074 : thestinger/rust/iterator, r=cmrbors-66/+98
d7c9bb4 r=alexcrichton 7ae17e0 r=huonw
2013-07-27iterator: add an Extendable traitDaniel Micay-1/+18
2013-07-27vec: replace some `as_mut_buf` with `to_mut_ptr`Daniel Micay-12/+10
2013-07-27Remove dummy type parameters from iterator adaptorsblake2-ppc-51/+43
With the recent fixes to method resolution, we can now remove the dummy type parameters used as crutches in the iterator module. For example, the zip adaptor type is just ZipIterator<T, U> now.
2013-07-27vec: add mut_slice_{to,from}Daniel Micay-0/+23
Closes #8066
2013-07-27make RandomAccessIterator inherit from IteratorDaniel Micay-2/+4
2013-07-27auto merge of #8036 : sfackler/rust/container-impls, r=msullivanbors-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-27auto merge of #8040 : luqmana/rust/rtn, r=brsonbors-110/+514
Implements various missing tcp & udp methods.. Also fixes handling ipv4-mapped/compatible ipv6 addresses and addresses the XXX on `status_to_maybe_uv_error`. r? @brson
2013-07-27Remove unnecessary #[path = "***/mod.rs"] lines.OGINO Masanori-5/+0
Fixes #7922. Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2013-07-26auto merge of #7986 : alexcrichton/rust/raw-repr, r=brsonbors-253/+252
This moves the raw struct layout of closures, vectors, boxes, and strings into a new `unstable::raw` module. This is meant to be a centralized location to find information for the layout of these values. As safe method, `unwrap`, is provided to convert a rust value to its raw representation. Unsafe methods to convert back are not provided because they are rarely used and too numerous to write an implementation for each (not much of a common pattern). This is progress on #6790. I tried to get a nice interface for a trait to implement in the raw module, but I was unable to come up with one. The hard part is that there are so many different directions to go from one way to another that it's difficult to find a pattern to follow to implement a trait with. Someone else might have some better luck though.
2013-07-26Consolidate raw representations of rust valuesAlex Crichton-236/+237
This moves the raw struct layout of closures, vectors, boxes, and strings into a new `unstable::raw` module. This is meant to be a centralized location to find information for the layout of these values. As safe method, `repr`, is provided to convert a rust value to its raw representation. Unsafe methods to convert back are not provided because they are rarely used and too numerous to write an implementation for each (not much of a common pattern).
2013-07-26auto merge of #8039 : Xazax-hun/rust/master, r=brsonbors-2/+184
Added some more atomic operations. https://github.com/mozilla/rust/issues/7421
2013-07-26libstd: Tests for {peer, socket}_name.Luqman Aden-0/+86
2013-07-25libstd: Implement some missing udp methods.Luqman Aden-21/+132
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.