about summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2014-04-08auto merge of #13399 : SimonSapin/rust/patch-8, r=cmrbors-1/+1
2014-04-08Update an obsolete comment about conditionsSimon Sapin-1/+1
2014-04-08std: make vec!() macro handle a trailing commaKang Seonghoon-1/+2
Fixes #12910.
2014-04-08Fix spelling errors in comments.Joseph Crail-4/+4
2014-04-08std: User a smaller stdin buffer on windowsAlex Crichton-1/+9
Apparently windows doesn't like reading from stdin with a large buffer size, and it also apparently is ok with a smaller buffer size. This changes the reader returned by stdin() to return an 8k buffered reader for stdin rather than a 64k buffered reader. Apparently libuv has run into this before, taking a peek at their code, with a specific comment in their console code saying that "ReadConsole can't handle big buffers", which I presume is related to invoking ReadFile as if it were a file descriptor. Closes #13304
2014-04-08Improve searching for XXX in tidy script (#3303)Boris Egorov-1/+1
Few places where previous version of tidy script cannot find XXX: * inside one-line comment preceding by a few spaces; * inside multiline comments (now it finds it if multiline comment starts on the same line with XXX). Change occurences of XXX found by new tidy script.
2014-04-08std: Add more docs for ptr modBrian Anderson-53/+182
2014-04-08Register new snapshotsAlex Crichton-61/+61
2014-04-07auto merge of #13358 : tbu-/rust/pr_doc_equivrel, r=cmrbors-63/+72
Add requirements of TotalEq and TotalOrd Clarify that TotalEq needs an underlying equivalence relation and that TotalOrd needs a total ordering and specifically named the required (and sufficient) attributes.
2014-04-07auto merge of #13356 : alexcrichton/rust/ignore-flaky, r=huonwbors-1/+1
This test relies on the parent to be descheduled before the child sends its data. This has proved to be unreliable on libnative on the bots. It's a fairly trivial test regardless, so ignoring it for now won't lose much.
2014-04-07auto merge of #13354 : alexcrichton/rust/fixup-some-signals, r=sfacklerbors-10/+9
This also makes the listener struct sendable again by explicitly putting the Send bound on the relevant Rtio object. cc #13352
2014-04-06auto merge of #13165 : sfackler/rust/io-vec, r=alexcrichtonbors-114/+115
`Reader`, `Writer`, `MemReader`, `MemWriter`, and `MultiWriter` now work with `Vec<u8>` instead of `~[u8]`. This does introduce some extra copies since `from_utf8_owned` isn't usable anymore, but I think that can't be helped until `~str`'s representation changes.
2014-04-06De-~[] IO utilsSteven Fackler-6/+6
2014-04-06De-~[] Mem{Reader,Writer}Steven Fackler-39/+40
2014-04-06De-~[] Reader and WriterSteven Fackler-71/+71
There's a little more allocation here and there now since from_utf8_owned can't be used with Vec.
2014-04-06Remove use of block comments in src/libstd/cmp.rsTobias Bucher-84/+72
2014-04-06Add requirements of TotalEq and TotalOrdTobias Bucher-2/+23
Clarify that TotalEq needs an underlying equivalence relation and that TotalOrd needs a total ordering and specifically named the required (and sufficient) attributes.
2014-04-06auto merge of #13344 : eddyb/rust/kill-unboxed-vec, r=cmrbors-25/+0
Removes the special `ty_unboxed_vec` type from the type system. It was previously used only during translating `~[T]`/`~str` allocation and drop glue.
2014-04-06rustc: remove ty_unboxed_vec.Eduard Burtescu-25/+0
2014-04-06auto merge of #13315 : alexcrichton/rust/libc, r=alexcrichton,mebors-4334/+37
Rebasing of #12526 with a very obscure bug fixed on windows.
2014-04-06std: Ignore a flaky std::comm testAlex Crichton-1/+1
This test relies on the parent to be descheduled before the child sends its data. This has proved to be unreliable on libnative on the bots. It's a fairly trivial test regardless, so ignoring it for now won't lose much.
2014-04-05std: Fix a doc example on io::signalAlex Crichton-10/+9
This also makes the listener struct sendable again by explicitly putting the Send bound on the relevant Rtio object. cc #13352
2014-04-05Fix an unnecessary use of `cast::transmute`Tobias Bucher-1/+1
Wherever possible, more specialized variants of said functions should be used, such as in this case `cast::transmute_mmut_unsafe`.
2014-04-05auto merge of #13331 : pongad/rust/remove-wrapper, r=thestingerbors-205/+84
Fixes #12713
2014-04-04Removed cmath and instrinsic wrapper.Michael Darakananda-205/+84
2014-04-04Added grow_fn and retain to VecMichael Darakananda-1/+64
2014-04-04Register new snapshotsAlex Crichton-3/+1
2014-04-04auto merge of #12956 : killerswan/rust/docs, r=alexcrichtonbors-17/+91
2014-04-04Fix fallout from std::libc separationCorey Richardson-24/+34
2014-04-04Remove libc from stdCorey Richardson-4310/+3
These wrappers are bound to a specific libc, and they don't need to be part of libstd.
2014-04-04auto merge of #13301 : erickt/rust/remove-refcell-get, r=huonwbors-28/+7
`RefCell::get` can be a bit surprising, because it actually clones the wrapped value. This removes `RefCell::get` and replaces all the users with `RefCell::borrow()` when it can, and `RefCell::borrow().clone()` when it can't. It removes `RefCell::set` for consistency. This closes #13182. It also fixes an infinite loop in a test when debugging is on.
2014-04-04auto merge of #13295 : huonw/rust/gate-concat-idents, r=alexcrichtonbors-1/+2
rustc: feature-gate `concat_idents!`. concat_idents! is not as useful as it could be, due to macros only being allowed in limited places, and hygiene, so lets feature gate it until we make a decision about it. cc #13294
2014-04-04rustc: feature-gate `concat_idents!`.Huon Wilson-1/+2
concat_idents! is not as useful as it could be, due to macros only being allowed in limited places, and hygiene, so lets feature gate it until we make a decision about it. cc #13294
2014-04-04[std::cmp] add missing docs and provide an exampleKevin Cantu-17/+91
2014-04-04auto merge of #13255 : alexcrichton/rust/issue-5605, r=huonwbors-0/+259
These syntax extensions need a place to be documented, and this starts passing a `--cfg dox` parameter to `rustdoc` when building and testing documentation in order to document macros so that they have no effect on the compiled crate, but only documentation. Closes #5605
2014-04-03auto merge of #12964 : gereeter/rust/extended-atomics, r=alexcrichtonbors-1/+133
Fixes #12949.
2014-04-03std: Remove `RefCell::set()`Erick Tryzelaar-11/+1
2014-04-03std: Remove `RefCell::get()`Erick Tryzelaar-18/+7
It's surprising that `RefCell::get()` is implicitly doing a clone on a value. This patch removes it and replaces all users with either `.borrow()` when we can autoderef, or `.borrow().clone()` when we cannot.
2014-04-03auto merge of #13296 : brson/rust/0.11-pre, r=alexcrichtonbors-1/+1
This also changes some of the download links in the documentation to 'nightly'.
2014-04-03auto merge of #13237 : alexcrichton/rust/private-tuple-structs, r=brsonbors-11/+19
This is the final commit need to implement [RFC #4](https://github.com/rust-lang/rfcs/blob/master/active/0004-private-fields.md), it makes all tuple struct fields private by default, overridable with the `pub` keyword. I'll note one divergence from the original RFC which is outlined in the first commit.
2014-04-03Add fetch_and, fetch_or, fetch_xor to AtomicInt, AtomicUintJonathan S-1/+133
2014-04-03auto merge of #13290 : alexcrichton/rust/rollup, r=alexcrichtonbors-6/+64
Closes #13285 (rustc: Stop using LLVMGetSectionName) Closes #13280 (std: override clone_from for Vec.) Closes #13277 (serialize: add a few missing pubs to base64) Closes #13275 (Add and remove some ignore-win32 flags) Closes #13273 (Removed managed boxes from libarena.) Closes #13270 (Minor copy-editing for the tutorial) Closes #13267 (fix Option<~ZeroSizeType>) Closes #13265 (Update emacs mode to support new `#![inner(attribute)]` syntax.) Closes #13263 (syntax: Remove AbiSet, use one Abi)
2014-04-03Test fixes from the rollupAlex Crichton-5/+5
2014-04-03Bump version to 0.11-preBrian Anderson-1/+1
This also changes some of the download links in the documentation to 'nightly'.
2014-04-03std: Document builtin syntax extensionsAlex Crichton-0/+259
These syntax extensions need a place to be documented, and this starts passing a `--cfg dox` parameter to `rustdoc` when building and testing documentation in order to document macros so that they have no effect on the compiled crate, but only documentation. Closes #5605
2014-04-03auto merge of #13286 : alexcrichton/rust/release, r=brsonbors-1/+1
Merging the 0.10 release into the master branch.
2014-04-03fix Option<~ZeroSizeType>Daniel Micay-2/+11
1778b6361627c5894bf75ffecf427573af02d390 provided the guarantee of no `exchange_free` calls for ~ZeroSizeType, so a sentinel can now be used without overhead. Closes #11998
2014-04-03std: override clone_from for Vec.Huon Wilson-4/+53
A vector can reuse its allocation (and the allocations/resources of any contained values) when cloning into an already-instantiated vector, so we might as well do so.
2014-04-02Fix fallout of requiring uint indicesAlex Crichton-24/+26
2014-04-02rand: remove (almost) all ~[]'s from Vec.Huon Wilson-15/+17
There are a few instances of them in tests which are using functions from std etc. that still are using ~[].