about summary refs log tree commit diff
path: root/src/libcore
AgeCommit message (Collapse)AuthorLines
2013-05-20auto merge of #6632 : steveklabnik/rust/remove_more_warnings, r=thestingerbors-2/+2
With this, the build is almost 100% warning free. One more can be fixed after the next snapshot, and there's one other that I filed an issue about already.
2013-05-20auto merge of #6629 : steveklabnik/rust/remove_uvio_warnings, r=catamorphismbors-8/+1
Mostly of the 'unused imports' kind. I'm unsure about the 'no unsafe' bit, but that's what it says...
2013-05-19Register snapshotsBrian Anderson-1818/+16
2013-05-19auto merge of #6621 : steveklabnik/rust/expand_reader_docs, r=thestingerbors-3/+13
Had a conversation with @cmr in IRC about some places that these docs were confusing. The functions that advance the stream now say so. In addition, I think that calling out the similarities to familliar C functions should help people coming from other languages.
2013-05-19auto merge of #6627 : steveklabnik/rust/remove_warnings, ↵bors-5/+0
r=thestinger,catamorphism These imports were not being used.
2013-05-19Add a few 'function's.Steve Klabnik-2/+2
This is now 100% consistent. Whoops!
2013-05-19Fix many warnings.Steve Klabnik-2/+2
2013-05-19auto merge of #6624 : steveklabnik/rust/io_prelude, r=catamorphismbors-1/+31
Let's actually give a top-level description of what's in here, eh?
2013-05-19Remove more warnings.Steve Klabnik-8/+1
Mostly of the 'unused imports' kind.
2013-05-19Removing some warnings from logging.rsSteve Klabnik-5/+0
These imports were not being used.
2013-05-19Fix wording per feedbackSteve Klabnik-2/+2
Thanks @catamorphism!
2013-05-19Add a better introduction for the io module.Steve Klabnik-1/+31
Let's actually give a top-level description of what's in here, eh?
2013-05-19auto merge of #6619 : steveklabnik/rust/stdout_docs, r=thestingerbors-0/+44
Added docs for stdout, stderr, print, and println.
2013-05-19Fix trailing whitespaceSteve Klabnik-2/+2
2013-05-19Elaborate a bit in the Reader docs regarding stream position.Steve Klabnik-3/+13
Had a conversation with @cmr in IRC about some places that these docs were confusing. The functions that advance the stream now say so. In addition, I think that calling out the similarities to familliar C functions should help people coming from other languages.
2013-05-19Added note about prelude inclusion.Steve Klabnik-2/+4
2013-05-19Add docs for stdin in core::io.Steve Klabnik-0/+10
2013-05-19Add additional documentation in core::io.Steve Klabnik-0/+42
Added docs for stdout, stderr, print, and println.
2013-05-19auto merge of #6106 : thestinger/rust/iter, r=bstriebors-30/+9
I don't have a strong opinion on the function vs. method, but there's no point in having both. I'd like to make a `repeat` adaptor like Python/Haskell for turning a value into an infinite stream of the value, so this has to at least be renamed.
2013-05-19Use assert_eq! rather than assert! where possibleCorey Richardson-809/+809
2013-05-19auto merge of #6595 : bjz/rust/core-tuple, r=thestingerbors-278/+293
2013-05-19Correct tuple Ord impl, add Total{Eq,Ord} impls and add some tests.Huon Wilson-19/+87
2013-05-18auto merge of #6606 : thestinger/rust/vers, r=brsonbors-1/+1
I don't see a reason to encode this information in all the `extern mod` statements, it's not a precise enough version to actually provide any sort of robustness.
2013-05-19reduce the usage of explicit version markersDaniel Micay-1/+1
2013-05-19Add Ptr::to_option methodBrendan Zabarauskas-0/+33
2013-05-18auto merge of #6589 : thestinger/rust/iterator, r=thestingerbors-76/+27
2013-05-18fix stage0 compileDaniel Micay-0/+2
2013-05-18auto merge of #6577 : brson/rust/io-upstream, r=pcwaltonbors-1377/+4057
r? This is all of my scheduler work on #4419 from the last 3 weeks or so. I've had a few failed pull requests so far but I think the problems are ironed out. * TCP * The beginnings of runtime embedding APIs * Porting various corners of core to be compatible with both schedulers * libuv timer bindings * Further refinement of I/O error handling, including a new, incomplete, `read_error` condition * Incomplete refactoring to make tasks work without coroutines and user-space scheduling * Implementations of Reader/Writer extension methods * Implementations of the most important part of core::comm I'm particularly happy with how easy the [comm types on top of the scheduler](https://github.com/brson/rust/blob/io-upstream/src/libcore/rt/comm.rs). Note that these implementations do not use pipes. If anything here needs careful review though it's this code. This branch passes 95% of the run-pass tests (with `TESTARGS=--newrt`) In the next week I'll probably spend some time adding preliminary multithreading and seeing how close we are to removing the old runtime.
2013-05-19Use `///` style doc-comments and add missing headingsBrendan Zabarauskas-72/+83
2013-05-19Code modernisation and cleanupBrendan Zabarauskas-64/+100
2013-05-19Create Char traitBrendan Zabarauskas-56/+102
2013-05-19Move tuple tests into submoduleBrendan Zabarauskas-48/+54
2013-05-19Fix Ord implementation to use lexical orderingBrendan Zabarauskas-14/+14
2013-05-19Replace Tuple{2..12} trait with CloneableTuple{2..12} and ImmutableTuple{2..12}Brendan Zabarauskas-118/+147
Make n{0..11} methods return cloned values, and create n{0..12}_ref methods for returning references
2013-05-19Use match instead of intermediate variableBrendan Zabarauskas-7/+9
2013-05-19Adapt the getter macro to implement Clone, Eq and Ord for n-ary tuplesBrendan Zabarauskas-145/+55
2013-05-18Return a reference to the tuple elements instead of copyingBrendan Zabarauskas-94/+92
2013-05-18Merge trait and impl macros by using an inner moduleBrendan Zabarauskas-129/+124
2013-05-18Use assert_eq! instead of assert!Brendan Zabarauskas-7/+7
2013-05-18use n{0..11} instead of _{0..12} for accessor method namesBrendan Zabarauskas-100/+100
2013-05-18Create tuple element accessor traitsBrendan Zabarauskas-0/+167
2013-05-18replace old_iter::repeat with the Times traitDaniel Micay-30/+9
2013-05-18iterator: use advance to implement FilterMapIteratorDaniel Micay-9/+5
2013-05-18iterator: reword docstringDaniel Micay-1/+1
2013-05-18iterator: reuse iter::to_vec, and use &mut selfDaniel Micay-7/+4
2013-05-18iterator: make nth and last return OptionDaniel Micay-35/+15
There isn't a way to take the length of any iterator, so failing on a zero length would make these much less useful.
2013-05-18iterator: remove `first`Daniel Micay-24/+0
it's the same as `next.unwrap()`, but there's no way to check the length of an iterator so this isn't a good pattern
2013-05-18auto merge of #6586 : bjz/rust/formatting-and-conditionals, r=thestingerbors-254/+284
2013-05-18Use four-space indentation, add trailing commas, and remove unnecessary uses ↵Brendan Zabarauskas-80/+95
of the return keyword
2013-05-18Convert various inner doc-comments to outer doc-commentsBrendan Zabarauskas-55/+30