summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2015-02-23Rollup merge of #22670 - shepmaster:c_str_typos, r=ManishearthManish Goregaokar-2/+2
2015-02-23Rollup merge of #22658 - glacjay:issue-22535, r=GankroManish Goregaokar-62/+66
fix issue #22535
2015-02-23Rollup merge of #22643 - fhartwig:bitvec-doc-fix, r=alexcrichtonManish Goregaokar-4/+4
It looks like a few spots in the documentation were missed when renaming `Bitv` and `BitvSet`. This fixes the docs to use their current names.
2015-02-23Rollup merge of #22559 - kmcallister:borrowck-readme, r=nikomatsakisManish Goregaokar-1/+1
And minor fixes to other docs. r? @nikomatsakis
2015-02-23Integer audit in `libstd/thread_local/*`, part of #22240Vojtech Kral-15/+15
2015-02-23int audit - std::syncNick Cameron-177/+177
2015-02-23Auto merge of #21769 - brooksbp:column-line-macro, r=nick29581bors-2/+2
Please see discussion in #19284 .
2015-02-23Use boxed functions instead of transmuteStepan Koltsov-31/+42
... to convert between Box and raw pointers. E. g. use ``` let b: Box<Foo> = Box::from_raw(p); ``` instead of ``` let b: Box<Foo> = mem::transmute(p); ``` Patch also changes closure release code in `src/libstd/sys/unix/thread.rs` when `pthread_create` failed. Raw pointer was transmuted to box of `FnOnce()` instead of `Thunk`. This code was probably never executed, because `pthread_create` rarely fails in practice.
2015-02-23doc: I learnt from review that this is now implementedTshepang Lekhonkhobe-4/+0
2015-02-22Auto merge of #22466 - Kimundi:str_pattern_ai_safe, r=aturonbors-1/+1
This is not a complete implementation of the RFC: - only existing methods got updated, no new ones added - doc comments are not extensive enough yet - optimizations got lost and need to be reimplemented See https://github.com/rust-lang/rfcs/pull/528 Technically a [breaking-change]
2015-02-22doc: nits and fixes for thread APITshepang Lekhonkhobe-18/+16
2015-02-22Fix typos in CStr docsJake Goulding-2/+2
2015-02-22Auto merge of #22574 - huonw:remove-lame-statics, r=alexcirchtonbors-45/+45
Add a basic test that checks that the types catch the most glaring errors that could occur. cc #22444
2015-02-22shift int/uint tests around to avoid code repetitionGlacJAY-62/+66
2015-02-21Implement BufRead for TakeSteven Fackler-0/+15
2015-02-22Rollup merge of #22584 - alexcrichton:snapshots, r=GankroManish Goregaokar-4173/+1
2015-02-22Rollup merge of #22568 - semarie:openbsd-rfc592, r=huonwManish Goregaokar-1/+1
The commit 1860ee52 has break the openbsd build. Repair it.
2015-02-22Rollup merge of #22583 - vhbit:ios-cstr, r=alexcrichtonManish Goregaokar-2/+2
"body": null,
2015-02-22Rollup merge of #22567 - Gankro:unstable, r=alexcrichtonManish Goregaokar-180/+129
* Adds features and allows * Removes unused muts, unused imports, dead code * Migrates some deprecated code to new io/env * Changes std::num::uint/int to be re-exports of std::num::usize/isize libcollections, liballoc, and libcoretest no longer warn during testing. libstd warns much less, though there's some dangly bits that weren't obvious fixes. In particular, how to only supress deprecated warnings in specific submodules of std.
2015-02-22Rollup merge of #22634 - shepmaster:std-io-typo, r=ManishearthManish Goregaokar-1/+1
2015-02-22Rollup merge of #22545 - Ryman:fucntion, r=dotdashManish Goregaokar-14/+14
2015-02-21Remove last traces of BitV and BitVSet from documentationFlorian Hartwig-4/+4
2015-02-21Fix io::Take behavior with limit 0Steven Fackler-0/+20
We can't call into the inner reader for a 0-byte read because that may end up blocking or returning an error.
2015-02-21Fix typo in std::io unstable reasonJake Goulding-1/+1
2015-02-21Resolve includeme.fragment conflict.Brian Brooks-2/+2
2015-02-21Fix thread documentationAdolfo Ochagavía-5/+8
2015-02-21Auto merge of #21959 - dhuseby:bitrig-support, r=brsonbors-24/+227
This patch adds the necessary pieces to support rust on Bitrig https://bitrig.org
2015-02-20Register new snapshotsAlex Crichton-4173/+1
2015-02-21Remove `'static` bound from sync::mpsc, Mutex and RwLock.Huon Wilson-45/+45
Adds some basic tests to check that the types still catch the most glaring errors that could occur. cc #22444.
2015-02-20make int/uint modules just re-exportsAlexis-151/+107
2015-02-20try to reduce bajillion warningsAlexis-29/+22
2015-02-20std: Tidy up some `unsafe impl`s for `sync`Alex Crichton-25/+41
This commit removes many unnecessary `unsafe impl` blocks as well as pushing the needed implementations to the lowest level possible. I noticed that the bounds for `RwLock` are a little off when reviewing #22574 and wanted to ensure that we had our story straight on these implementations.
2015-02-20std: Ensure fs::{DirEntry, ReadDir} are Send/SyncAlex Crichton-25/+47
The windows/unix modules were currently inconsistent about the traits being implemented for `DirEntry` and there isn't much particular reason why the traits *couldn't* be implemented for `ReadDir` and `DirEntry`, so this commit ensures that they are implemented. Closes #22577
2015-02-20Tweaks to equality comparisons for slices/arrays/vectorsVadim Petrochenkov-1/+1
2015-02-20iOS: CStr falloutValerii Hiora-2/+2
2015-02-20unbreak openbsd build after 1860ee52Sébastien Marie-1/+1
The commit 1860ee52 has break the openbsd build. Repair it.
2015-02-19std: Update the std::io adaptors to proxy all methodsErick Tryzelaar-1/+36
2015-02-20Addressed PR commentsMarvin Löbel-1/+1
2015-02-19typo: fucntion -> functionKevin Butler-14/+14
2015-02-19Round 8 tex fixesManish Goregaokar-1/+1
2015-02-19Round 5 test fixes and rebase conflictsAlex Crichton-6/+48
2015-02-18Fix references to doc.rs throughout the codeKeegan McAllister-1/+1
2015-02-18Round 4 test fixes and rebase conflictsAlex Crichton-2/+166
2015-02-18rollup merge of #22286: nikomatsakis/variance-4bAlex Crichton-33/+52
Conflicts: src/librustc/middle/infer/combine.rs src/librustc_typeck/check/wf.rs
2015-02-18Round 2 test fixes and conflictsAlex Crichton-16/+16
2015-02-18rollup merge of #22502: nikomatsakis/deprecate-bracket-bracketAlex Crichton-47/+47
Conflicts: src/libcollections/slice.rs src/libcollections/str.rs src/librustc/middle/lang_items.rs src/librustc_back/rpath.rs src/librustc_typeck/check/regionck.rs src/libstd/ffi/os_str.rs src/libsyntax/diagnostic.rs src/libsyntax/parse/parser.rs src/libsyntax/util/interner.rs src/test/run-pass/regions-refcell.rs
2015-02-18rollup merge of #22210: aturon/stab-final-borrowAlex Crichton-28/+33
Conflicts: src/libcollections/btree/map.rs src/libcollections/str.rs src/libcollections/vec.rs src/libcore/borrow.rs src/libcore/hash/mod.rs src/libstd/collections/hash/map.rs src/libstd/collections/hash/set.rs
2015-02-18Round 1 fixes and rebase conflictsAlex Crichton-11/+13
2015-02-18Stabilize std::borrowAaron Turon-28/+33
This commit stabilizes `std::borrow`, making the following modifications to catch up the API with language changes: * It renames `BorrowFrom` to `Borrow`, as was originally intended (but blocked for technical reasons), and reorders the parameters accordingly. * It moves the type parameter of `ToOwned` to an associated type. This is somewhat less flexible, in that each borrowed type must have a unique owned type, but leads to a significant simplification for `Cow`. Flexibility can be regained by using newtyped slices, which is advisable for other reasons anyway. * It removes the owned type parameter from `Cow`, making the type much less verbose. * Deprecates the `is_owned` and `is_borrowed` predicates in favor of direct matching. The above API changes are relatively minor; the basic functionality remains the same, and essentially the whole module is now marked `#[stable]`. [breaking-change]
2015-02-18Replace all uses of `&foo[]` with `&foo[..]` en masse.Niko Matsakis-47/+47