summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2013-06-21Remove all #[cfg(stage0)]-protected codeJames Miller-98/+9
New snapshot means this can all go. Also removes places that have comments that say they are workarounds for stage0 errors.
2013-06-20ignore inherited environment test under valgrind r=snapshotJames Miller-0/+1
2013-06-19std: Make newsched failures log correctlyBrian Anderson-2/+11
2013-06-19derived instances of Eq and TotalEq for IpAddr rather than implement them ↵Eric Reed-21/+1
manually.
2013-06-19socket based UDP ioEric Reed-70/+157
2013-06-19std::rt: Update GC metadata in initBrian Anderson-0/+5
2013-06-19Changed visibility from being on the impl to being on methods per language ↵Eric Reed-13/+13
syntax change.
2013-06-19Modified a match in resume_task_from_queue that was returning an int that ↵toddaaro-17/+17
was then matched on to instead use an enum.
2013-06-19Wrote the Eq instance of IpAddr in a slightly different way.Eric Reed-3/+3
2013-06-19std::rt: Document and cleanup the run functionBrian Anderson-10/+30
2013-06-19std::rt: Correct the numbers of default coresBrian Anderson-6/+1
2013-06-19std::rt: Set the process exit codeBrian Anderson-5/+19
2013-06-18std::rt: Work around a dynamic borrowck bugBrian Anderson-3/+2
2013-06-18std: Work around some failing 'run' tests when valgrinding. #7224Brian Anderson-5/+25
Under valgrind on 64->32 cross compiles the dynamic linker is emitting some error messages on stderr, which interferes with the tests that are checking stderr.
2013-06-18std::rt: Improve the rtabort! macroBrian Anderson-15/+72
2013-06-18replace #[inline(always)] with #[inline]. r=burningtree.Graydon Hoare-1156/+1156
2013-06-18std::rt: Turn on multithreaded schedulingBrian Anderson-16/+76
2013-06-17std: Rename `abort!` to `rtabort!` to match other macrosBrian Anderson-23/+23
2013-06-17std::rt: move abort function to util moduleBrian Anderson-9/+5
2013-06-17std::rt: Check exchange count on exitBrian Anderson-6/+37
2013-06-17std::rt: Add util mod and num_cpus functionBrian Anderson-5/+27
2013-06-17auto merge of #7197 : rkbodenner/rust/doc-for-lib-move, r=brsonbors-17/+18
Was updating some code of mine to use the new `std`/`extra` library names, and noticed a place where docs for `std::libc` hadn't been updated. Then I updated some top-level docs for the new libraries' names, too.
2013-06-17auto merge of #7131 : Blei/rust/windows-dynamic-lib, r=graydonbors-21/+33
The code compiles and runs under windows now, but I couldn't look up any symbol from the current executable (dlopen(NULL)), and calling looked up external function handles doesn't seem to work correctly under windows. This the beginning of a fix for #7095.
2013-06-17Merge remote-tracking branch 'upstream/io' into ioEric Reed-4550/+5705
Conflicts: src/libstd/rt/uvio.rs
2013-06-17Started to implemented UdpStreamEric Reed-0/+80
2013-06-17stated to implement UdpStreamEric Reed-4/+13
2013-06-17added Eq and TotalEq instances for IpAddrEric Reed-0/+21
2013-06-17added a function to convert C's ipv4 data structure into the Rust ipv4 data ↵Eric Reed-0/+8
structure.
2013-06-17Added a RtioUdpStream traitEric Reed-0/+7
2013-06-17added wrappers about uv_ip{4,6}_{port,name}Eric Reed-0/+16
2013-06-17auto merge of #7199 : Kimundi/rust/master, r=bstriebors-25/+91
- Fixed tests - Added methods - Renamed casting methods to be shorter - Added unsafe versions Closes #7150
2013-06-17auto merge of #7195 : brson/rust/timertest, r=bstriebors-2/+2
2013-06-17std: fix stat struct of android (SEGV error from run-pass/stat.rs on android)Young-il Choi-2/+78
2013-06-17Improved std::asciiMarvin Löbel-25/+91
- Fixed tests - Added methods - Renamed casting methods to be shorter closes #7150
2013-06-17auto merge of #7198 : huonw/rust/slice-zeros, r=Aatchbors-0/+42
2013-06-17Reproduce text changes from @brson PR 7176 and fix a typo thereinRalph Bodenner-14/+15
2013-06-17std: add Zero impls for &[] and &str.Huon Wilson-0/+42
2013-06-16Update doc references to new names for std, extra, and std::libcRalph Bodenner-4/+4
2013-06-16std::rt: Reduce the delay on a timer test. SlowBrian Anderson-2/+2
2013-06-17Adds conditional byteswapping intrinsicsJens Nockert-0/+14
These intrinsics are synthesized, so maybe they should be in another file. But since they are just a single line of code each, based on the bswap intrinsics and aren't really intended for public consumption (they should be exposed as a single function / trait) I thought they would fit here.
2013-06-16Merge remote-tracking branch 'brson/io'Brian Anderson-794/+2881
Conflicts: src/libstd/rt/comm.rs src/libstd/rt/mod.rs src/libstd/rt/sched.rs src/libstd/rt/task.rs src/libstd/rt/test.rs src/libstd/rt/tube.rs src/libstd/rt/uv/uvio.rs src/libstd/rt/uvio.rs src/libstd/task/spawn.rs
2013-06-16auto merge of #7177 : huonw/rust/unfold-fix, r=thestingerbors-2/+2
2013-06-16Remove moves from *T and implement in another wayNiko Matsakis-21/+9
2013-06-16Add copies to type params with Copy boundNiko Matsakis-58/+58
2013-06-16auto merge of #7163 : brson/rust/reinterpret-cast, r=thestingerbors-5/+2
2013-06-16auto merge of #7156 : Dretch/rust/float-hash, r=graydonbors-0/+41
It can sometimes be useful to have maps/sets of floating point values. Doing arithmetic with floats and then using them as keys is, of course, not a good idea.
2013-06-16auto merge of #7142 : alexcrichton/rust/deriving-zero, r=pcwaltonbors-2/+63
This allows mass-initialization of large structs without having to specify all the fields. I'm a bit hesitant, but I wanted to get this out there. I don't really like using the `Zero` trait, because it doesn't really make sense for a type like `HashMap` to use `Zero` as the 'blank allocation' trait. In theory there'd be a new trait, but then that's adding cruft to the language which may not necessarily need to be there. I do think that this can be useful, but I only implemented `Zero` on the basic types where I thought it made sense, so it may not be all that usable yet. (opinions?)
2013-06-16std: fix UnfoldrIterator cross-crate.Huon Wilson-2/+2
2013-06-16auto merge of #7137 : erickt/rust/from-elem-fixme, r=thestingerbors-2/+4
This is to make sure we track optimizing `vec::from_elem`.
2013-06-16auto merge of #7123 : huonw/rust/more-str, r=thestingerbors-330/+298
Moves all the remaining functions that could reasonably be methods to be methods, except for some FFI ones (which I believe @erickt is working on, possibly) and `each_split_within`, since I'm not really sure the details of it (I believe @kimundi wrote the current implementation, so maybe he could convert it to an external iterator method on `StrSlice`, e.g. `word_wrap_iter(&self) -> WordWrapIterator<'self>`, where `WordWrapIterator` impls `Iterator<&'self str>`. It probably won't be too hard, since it's already a state machine.) This also cleans up the comparison impls for the string types, except I'm not sure how the lang items `eq_str` and `eq_str_uniq` need to be handled, so they (`eq_slice` and `eq`) remain stand-alone functions.