about summary refs log tree commit diff
path: root/src/libextra
AgeCommit message (Collapse)AuthorLines
2013-11-26auto merge of #10679 : alexcrichton/rust/no-routine, r=pcwaltonbors-21/+5
2013-11-26Remove unused std::routineAlex Crichton-21/+5
2013-11-26librustc: Fix merge fallout.Patrick Walton-10/+6
2013-11-26librustc: Make `||` lambdas not infer to `proc`sPatrick Walton-13/+13
2013-11-26test: Remove all remaining non-procedure uses of `do`.Patrick Walton-272/+280
2013-11-26librustuv: Remove all non-`proc` uses of `do` from `libextra` andPatrick Walton-373/+382
`librustuv`.
2013-11-26librustc: Remove remaining uses of `&fn()` in favor of `||`.Patrick Walton-1/+1
2013-11-26Removed unneccessary `_iter` suffixes from various APIsMarvin Löbel-58/+58
2013-11-25auto merge of #10658 : LeoTestard/rust/serialize-rc, r=cmrbors-0/+15
Implement various traits (IterBytes and extra's Encodable and Decodable) for Rc<T> when T alreay implements the trait.
2013-11-25Add an implementation of Encodable and Decodable for Rc. This will be needed ↵Léo Testard-0/+15
to use Rc in place of @ in libsyntax.
2013-11-25auto merge of #10648 : sfackler/rust/base64-test, r=alexcrichtonbors-1/+1
We want a 1000 element array, not a 2 element array
2013-11-25Fix typo in base64 testSteven Fackler-1/+1
We want a 1000 element array, not a 2 element array
2013-11-24auto merge of #10603 : alexcrichton/rust/no-linked-failure, r=brsonbors-167/+115
The reasons for doing this are: * The model on which linked failure is based is inherently complex * The implementation is also very complex, and there are few remaining who fully understand the implementation * There are existing race conditions in the core context switching function of the scheduler, and possibly others. * It's unclear whether this model of linked failure maps well to a 1:1 threading model Linked failure is often a desired aspect of tasks, but we would like to take a much more conservative approach in re-implementing linked failure if at all. Closes #8674 Closes #8318 Closes #8863
2013-11-24Remove linked failure from the runtimeAlex Crichton-167/+115
The reasons for doing this are: * The model on which linked failure is based is inherently complex * The implementation is also very complex, and there are few remaining who fully understand the implementation * There are existing race conditions in the core context switching function of the scheduler, and possibly others. * It's unclear whether this model of linked failure maps well to a 1:1 threading model Linked failure is often a desired aspect of tasks, but we would like to take a much more conservative approach in re-implementing linked failure if at all. Closes #8674 Closes #8318 Closes #8863
2013-11-24libextra: Remove @mut from term.Luqman Aden-92/+124
2013-11-24extra: improve the errors for the JSON Decoder.Huon Wilson-25/+126
Fixes #4244.
2013-11-19Remove NonCopyable::newSteven Fackler-5/+5
The issue that required it has been fixed.
2013-11-19libextra: Convert uses of `&fn(A)->B` to `|A|->B`.Patrick Walton-231/+224
2013-11-18auto merge of #10561 : pcwalton/rust/procify, r=alexcrichtonbors-19/+24
r? @alexcrichton
2013-11-18auto merge of #10458 : yichoi/rust/make_check_pass_android2, r=brsonbors-0/+1
To enable test on android bot #9120 workcache::test disabled and run-pass/core-run-destroy.rs fixed on android
2013-11-18librustc: Convert `~fn()` to `proc()` everywhere.Patrick Walton-1/+1
2013-11-18libextra: Remove `~fn()` from libextra.Patrick Walton-19/+24
2013-11-18rt: Namespace all C functions under rust_Brian Anderson-4/+4
2013-11-19temporarily disable tests on android and tagging issue number #10455Young-il Choi-0/+1
2013-11-17auto merge of #10443 : alexcrichton/rust/meaninless-pub-priv, r=cmrbors-2/+2
Closes #10111
2013-11-17Forbid privacy in inner functionsAlex Crichton-2/+2
Closes #10111
2013-11-17auto merge of #10532 : dhodder/rust/master, r=alexcrichtonbors-0/+10
Hello. This is just a tiny doc update -- I'm new here, so apologies if I'm doing it wrong.
2013-11-17Add doc comment for extra::url::query_to_strDave Hodder-0/+10
2013-11-17extra: handle an edge case in BigUint.to_str().Huon Wilson-1/+6
If any of the digits was one past the maximum (e.g. 10**9 for base 10), then this wasn't detected correctly and so the length of the digit was one more than expected, causing a very large allocation. Fixes #10522. Fixes #10288.
2013-11-13Add lru_cache to libextraKiet Tran-0/+366
2013-11-13auto merge of #10447 : alexcrichton/rust/flaky-time-test, r=catamorphismbors-6/+5
This test was failing periodically on windows and other platforms, and in debugging the issue locally I've found that the previous test was failing at the assertion `ns0 <= ns1`. Upon inspecting the values, the two numbers were very close to one another, but off by a little bit. I believe that this is because `precise_time_s` goes from `u64` -> `f64` and then we go again back to `u64` for the assertion. This conversion is a lossy one that's not always guaranteed to succeed, so instead I've changed the test to only compare against u64 instances.
2013-11-12Make a time test less flakyAlex Crichton-6/+5
This test was failing periodically on windows and other platforms, and in debugging the issue locally I've found that the previous test was failing at the assertion `ns0 <= ns1`. Upon inspecting the values, the two numbers were very close to one another, but off by a little bit. I believe that this is because `precise_time_s` goes from `u64` -> `f64` and then we go again back to `u64` for the assertion. This conversion is a lossy one that's not always guaranteed to succeed, so instead I've changed the test to only compare against u64 instances.
2013-11-11Move std::rt::io to std::ioAlex Crichton-40/+40
2013-11-11Remove #[fixed_stack_segment] and #[rust_stack]Alex Crichton-23/+2
These two attributes are no longer useful now that Rust has decided to leave segmented stacks behind. It is assumed that the rust task's stack is always large enough to make an FFI call (due to the stack being very large). There's always the case of stack overflow, however, to consider. This does not change the behavior of stack overflow in Rust. This is still normally triggered by the __morestack function and aborts the whole process. C stack overflow will continue to corrupt the stack, however (as it did before this commit as well). The future improvement of a guard page at the end of every rust stack is still unimplemented and is intended to be the mechanism through which we attempt to detect C stack overflow. Closes #8822 Closes #10155
2013-11-10extra::getopts: update docs for minor renaming.Huon Wilson-1/+2
2013-11-09auto merge of #10153 : ↵bors-14/+14
nikomatsakis/rust/issue-4846-multiple-lifetime-parameters-7, r=pnkfelix Fully support multiple lifetime parameters on types and elsewhere, removing special treatment for `'self`. I am submitting this a touch early in that I plan to push a new commit with more tests specifically targeting types with multiple lifetime parameters -- but the current code bootstraps and passes `make check`. Fixes #4846
2013-11-09auto merge of #10372 : catamorphism/rust/rustpkg-issue-9311, r=catamorphismbors-6/+2
and use opt_str instead of opt_val in rustpkg Closes #9311
2013-11-08Update various tests and libraries that were incorrectlyNiko Matsakis-14/+14
annotated.
2013-11-08extra / rustpkg: Make getopts::opt_val private againTim Chevalier-6/+2
and use opt_str instead of opt_val in rustpkg Closes #9311
2013-11-08Specify package_id for rust libs, to avoid spurious warningsAndrei Formiga-0/+1
2013-11-08auto merge of #10303 : niftynif/rust/master, r=catamorphismbors-0/+450
r? @catamorphism First contribution; contains struct definitions and some useful traits. Can possibly be improved by removing the dependence on the Clone trait. This is intended to be the beginning of a long-term project.
2013-11-08Added proper //! documentation to the beginning of btree.rs.niftynif-2/+3
2013-11-07auto merge of #10281 : klutzy/rust/rt-timezone, r=alexcrichtonbors-40/+59
Previously #9418 fixed utf-8 assertion issue by wcsftime, but the function didn't work as expected: it follows the locale set by setlocale(), not the system code page. This patch fixes it by manual multibyte-to-unicode conversion.
2013-11-08extra::time: Fix test on Windowsklutzy-40/+59
Closes #10307
2013-11-07auto merge of #10340 : eholk/rust/url, r=brsonbors-4/+4
According to http://tools.ietf.org/html/rfc3986, ~ is a legal character in URLs.
2013-11-08std::ascii: Provide a copyless [Ascii] -> str method.Huon Wilson-6/+2
This renames to_str_ascii to as_str_ascii and makes it non-copying, which is possible now that strings no longer have a hidden extra byte/null terminator. Fixes #6120.
2013-11-07Add ~ to the list of allowable URL characters.Eric Holk-4/+4
2013-11-07Addressed style concerns in btree.rs and added it to the lib file.niftynif-60/+125
Added documentation within btree.rs.
2013-11-05Re-arranging some things in btree.rs to accommodate testing.niftynif-107/+119
2013-11-04Added skeleton implementation of a B-tree with a few bells andniftynif-0/+372
whistles. No major functionality added yet (such as insertion and removal).