summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2013-09-06fix for issue #7588, overflow now handled correctlyAaron Laursen-4/+31
2013-09-06Fix Acceptor iterator ending early if a connection attempt failsEric Reed-4/+9
2013-09-09auto merge of #9005 : alexcrichton/rust/rusty-log, r=brsonbors-1/+9
Also redefine all of the standard logging macros to use more rust code instead of custom LLVM translation code. This makes them a bit easier to understand, but also more flexibile for future types of logging. Additionally, this commit removes the LogType language item in preparation for changing how logging is performed.
2013-09-09auto merge of #9051 : bjz/rust/master, r=huonwbors-384/+419
2013-09-09Some work on std::ascii: Marked unsafe function unsafe, added moving ↵Marvin Löbel-20/+77
implementations
2013-09-09auto merge of #9073 : alexcrichton/rust/remove-local-data-hax, r=huonwbors-9/+7
These compiler bugs have since been fixed (one less layer of indirection)
2013-09-09Remove hacks around issues in local_dataAlex Crichton-9/+7
These compiler bugs have since been fixed (one less layer of indirection)
2013-09-09auto merge of #9065 : thestinger/rust/iter, r=alexcrichtonbors-64/+62
The trait will keep the `Iterator` naming, but a more concise module name makes using the free functions less verbose. The module will define iterables in addition to iterators, as it deals with iteration in general.
2013-09-09rename `std::iterator` to `std::iter`Daniel Micay-64/+62
The trait will keep the `Iterator` naming, but a more concise module name makes using the free functions less verbose. The module will define iterables in addition to iterators, as it deals with iteration in general.
2013-09-08repr: update for removal of constDaniel Micay-2/+1
2013-09-08repr: write the mutability qualifier for slicesDaniel Micay-0/+4
2013-09-08auto merge of #8988 : cmr/rust/fromstr_fn, r=brsonbors-3/+9
It just calls out to the associated function on the trait.
2013-09-08Fix import order which caused the wrong from_str to be in scopeCorey Richardson-3/+3
2013-09-09Fix unused import warnings on 32bit systemsBrendan Zabarauskas-2/+6
2013-09-08Add Clone and DeepClone constraints to Primitive traitBrendan Zabarauskas-1/+4
2013-09-08Moved checked trait impls out of std::numBrendan Zabarauskas-383/+411
This follows the same pattern as the other numeric trait impls, and reduces the clutter in std::num.
2013-09-08std: Rename Unfoldr to Unfold.Huon Wilson-6/+6
The `r` is not relevant, since there is only one direction of folding (unlike Haskell).
2013-09-07auto merge of #9046 : thestinger/rust/repr, r=alexcrichtonbors-5/+22
Closes #8743
2013-09-07fix repr of strings/chars with quotesDaniel Micay-5/+22
Closes #8743
2013-09-06auto merge of #9002 : brson/rust/issue-8769, r=catamorphismbors-22/+21
This is an unsafe implementation detail of `push`.
2013-09-06auto merge of #9000 : brson/rust/dns, r=anasazibors-15/+382
This exposes a very simple function for resolving host names. There's a lot more that needs to be done, but this is probably enough for servo to get started connecting to real websites again.
2013-09-05std::rt: Fix addrinfo definition on BSDBrian Anderson-1/+15
2013-09-05auto merge of #8914 : Dretch/rust/native-glob, r=alexcrichtonbors-84/+0
This is #8201 with a bunch of amendments to address the comments (and re-based).
2013-09-05auto merge of #8909 : lkuper/rust/default-methods-refactor, r=alexcrichtonbors-234/+156
(cc: #3227) Parts I'm unsure about and would like a reviewer to look at are: * `pub trait GenericPath : Clone + Eq + ToStr` -- is this the done thing? I've never done trait inheritance before, let alone from multiple traits, but it seemed to be necessary to be able to call all the methods we have to be able to call on `self`. * changing the argument of `components` from `self` to `&self`, and having it return `self.components.clone()` instead of `self.components`; this was necessary to avoid move errors, but I'm not sure if it's the right thing. (The default methods impls now all have to call `self.components()` instead of just referencing the field `self.components`.)
2013-09-05std: Remove push_fast from OwnedVector. Closes #8769Brian Anderson-22/+21
This is an unsafe implementation detail of `push`.
2013-09-05auto merge of #8997 : fhahn/rust/issue_8985, r=catamorphism,brsonbors-84/+84
Patch for #8985
2013-09-05std::rt: Add get_host_addresses functionBrian Anderson-10/+78
This is a very simplistic method for host name resolution. It converts a host name to a vector of IP addresses. Should be enough to get started.
2013-09-05std::rt: Add libuv bindings for getaddrinfoBrian Anderson-0/+282
2013-09-05std::rt: Some I/O cleanupBrian Anderson-7/+10
2013-09-05Replace os::glob with extra::glob, which is written in rust,Gareth Smith-84/+0
fixing issue #6100.
2013-09-05auto merge of #8984 : chris-morgan/rust/auto-stream-impl, r=huonwbors-0/+2
This is consistent with the existing documentation but was not the actual behaviour, which I've found to be rather a nuisance, actually.
2013-09-05Rename str::from_bytes to str::from_utf8, closes #8985Florian Hahn-84/+84
2013-09-05Minor doc cleanup.Lindsey Kuper-11/+12
2013-09-05Factor shared code out into default GenericPath methods.Lindsey Kuper-223/+144
2013-09-05auto merge of #8990 : thestinger/rust/str, r=alexcrichtonbors-11/+0
mapping a function against the elements should not require allocating a new container, but `collect` still provides the functionality as-needed
2013-09-05Remove the __log function for __log_levelAlex Crichton-1/+9
Also redefine all of the standard logging macros to use more rust code instead of custom LLVM translation code. This makes them a bit easier to understand, but also more flexibile for future types of logging. Additionally, this commit removes the LogType language item in preparation for changing how logging is performed.
2013-09-05str: rm `map_chars`, replaced by iteratorsDaniel Micay-11/+0
mapping a function against the elements should not require allocating a new container, but `collect` still provides the functionality as-needed
2013-09-04auto merge of #8944 : alexcrichton/rust/issue-8938, r=huonwbors-0/+11
Otherwise extra stuff after a lone '}' character is simply ignored, which is very bad. Closes #8938
2013-09-05Add from_str docsCorey Richardson-0/+1
2013-09-05Add a from_str function that calls out to the associated method on the traitCorey Richardson-0/+5
2013-09-04std::str: Deny surrogates in is_utf8blake2-ppc-3/+12
Reject codepoints \uD800 to \uDFFF which are the surrogates (reserved/unused codepoints that are invalid to encode into UTF-8) The surrogates is the only hole of invalid codepoints in the range from \u0 to \u10FFFF.
2013-09-04auto merge of #8978 : pnkfelix/rust/make-path-api-less-allocation-happy, r=huonwbors-25/+25
A [dialogue](https://github.com/mozilla/rust/pull/8909#discussion-diff-6102725) on PR #8909 inspired me to make this change. r? anyone (It is possible that `std::path` itself will soon be replaced with a new implementation that kballard's working on, as mentioned in the dialogue linked above, but this revision is simple enough that I figured I'd offer it up.)
2013-09-05Implement Stream automatically for Reader + WriterChris Morgan-0/+2
This is consistent with the existing documentation but was not the actual behaviour, which I've found to be rather a nuisance, actually.
2013-09-04auto merge of #8977 : pnkfelix/rust/fsk-followup-on-6009-rebased, r=alexcrichtonbors-10/+9
Fix #6009. Rebased version of #8970. Inherits review from alexcrichton.
2013-09-04auto merge of #8935 : blake2-ppc/rust/reader-bytes, r=brsonbors-1/+89
An iterator that simply calls `.read_bytes()` each iteration. I think choosing to own the Reader value and implementing Decorator to allow extracting it is the most generically useful. The Reader type variable can of course be some kind of reference type that implements Reader. In the generic form the `Bytes` iterator is well behaved itself and does not read ahead. It performs abysmally on top of a FileStream, and much better if a buffering reader is inserted inbetween.
2013-09-04auto merge of #8880 : fhahn/rust/issue_8703, r=brsonbors-15/+248
I've started working on #8703. RUST_LOG="::help" should work, I hope I'll be able to finish the rest this weekend.
2013-09-04auto merge of #8901 : adridu59/rust/issue-8511, r=huonwbors-1/+7
Android has no /tmp partition, cf. #8511.
2013-09-04Another followup on #6009.Felix S. Klock II-1/+2
Odd that my earlier make checks did not catch this.
2013-09-04libstd/os: set tmp dir to /data/tmp on Androidadridu59-1/+7
Android has no /tmp partition, return /data/tmp instead. Cf. #8511.
2013-09-04Convert rust_log.cpp to Rust, closes #8703Florian Hahn-15/+248