about summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2016-06-30Issue #34076: Removing reference to removed path.prefix() functionPeter Landoll-2/+1
2016-06-30remove unneeded allow flagSteve Klabnik-1/+0
There isn't anything deprecated being used in this function.
2016-06-29std: use siphash-1-3 for HashMapSean McArthur-4/+25
2016-06-29Update documentation to reflect ignoring of unknown addressesTobias Bucher-1/+7
2016-06-29Convert a simple tail call to a loopTobias Bucher-10/+14
2016-06-29Ignore unknown address types when looking up hostsTobias Bucher-13/+12
Previously, any function using a `ToSocketAddrs` input would fail if passed a hostname that resolves to an address type different from the ones recognized by Rust. This also changes the `LookupHost` iterator to only include the known address types, as a result, it doesn't have to return `Result`s any more, which are likely misinterpreted as failed name lookups.
2016-06-28Rollup merge of #34524 - frewsxcv:std-io-sink, r=GuillaumeGomezGuillaume Gomez-0/+10
Add doc example for `std::io::sink`. None
2016-06-28Rollup merge of #34518 - frewsxcv:io-repeat, r=GuillaumeGomezGuillaume Gomez-0/+10
Add doc example for `std::io::repeat`. None
2016-06-28Rollup merge of #34517 - frewsxcv:empty, r=GuillaumeGomezGuillaume Gomez-6/+3
Minor rewrite of `std::io::empty` doc example. None
2016-06-28Rollup merge of #34475 - frewsxcv:path-component, r=GuillaumeGomezGuillaume Gomez-0/+20
Expand `std::path::Component` documentation. Indicate how it gets created and add an example.
2016-06-28Rollup merge of #34415 - ollie27:docs_float, r=steveklabnikGuillaume Gomez-24/+20
Use the correct types in float examples r? @steveklabnik
2016-06-28Rollup merge of #34406 - frewsxcv:sleep-ex, r=alexcrichtonGuillaume Gomez-0/+13
Add example for `std::thread::sleep`. None
2016-06-28Add doc example for `std::io::sink`.Corey Farwell-0/+10
2016-06-27Minor rewrite of `std::io::empty` doc example.Corey Farwell-6/+3
Remove unnecessary hidden `foo` function. Demonstrate this emptiness of the resulting string. Combine imports.
2016-06-27Add doc example for `std::io::repeat`.Corey Farwell-0/+10
2016-06-27Add example for `std::thread::sleep`.Corey Farwell-0/+13
2016-06-26Expand `std::path::Component` documentation.Corey Farwell-0/+20
Indicate how it gets created and add an example.
2016-06-25Auto merge of #34469 - frewsxcv:path-components, r=GuillaumeGomezbors-0/+4
Indicate how the `std::path::Components` struct is created. None
2016-06-25Auto merge of #34468 - frewsxcv:doc-links, r=GuillaumeGomezbors-5/+15
Add hyperlinks to `std::fs` functions from `std::path`. None
2016-06-25Auto merge of #34465 - frewsxcv:builder-name-example, r=GuillaumeGomezbors-0/+15
Add doc example for `std::thread::Builder::name`. None
2016-06-25Auto merge of #34410 - frewsxcv:code-like, r=apasel422bors-4/+4
Parameters in doc comment should be formatted code-like. None
2016-06-25Indicate how the `std::path::Components` struct is created.Corey Farwell-0/+4
2016-06-25Add hyperlinks to `std::fs` functions from `std::path`.Corey Farwell-5/+15
2016-06-25Rollup merge of #34438 - frewsxcv:joinhandle, r=GuillaumeGomezManish Goregaokar-0/+30
Indicate how the `JoinHandle` struct is created. None
2016-06-25Add doc example for `std::thread::Builder::name`.Corey Farwell-0/+15
2016-06-24Auto merge of #34452 - frewsxcv:unwrap-or, r=alexcrichtonbors-3/+3
Use `Option::expect` instead of `unwrap_or_else` with `panic!`. None
2016-06-24Auto merge of #34441 - tbu-:pr_dont_ignore_errors, r=alexcrichtonbors-30/+30
Don't ignore errors of syscalls in std::sys::unix::fd If any of these syscalls fail, it indicates a programmer error that should not be silently ignored.
2016-06-24Add examples in docs for `JoinHandle`.Corey Farwell-0/+24
2016-06-24Auto merge of #34425 - tbu-:pr_len_instead_of_size_hint, r=alexcrichtonbors-1/+1
Use `len` instead of `size_hint` where appropiate This makes it clearer that we're not just looking for a lower bound but rather know that the iterator is an `ExactSizeIterator`.
2016-06-24Use `Option::expect` instead of `unwrap_or_else` with `panic!`.Corey Farwell-3/+3
2016-06-24Indicate how the `JoinHandle` struct is created.Corey Farwell-0/+6
2016-06-24Auto merge of #34399 - alexcrichton:issue-audit, r=brsonbors-13/+25
std: Fix up stabilization discrepancies * Remove the deprecated `CharRange` type which was forgotten to be removed awhile back. * Stabilize the `os::$platform::raw::pthread_t` type which was intended to be stabilized as part of #32804
2016-06-24Bubble up the errors in `set_nonblocking` and `set_cloexec`Tobias Bucher-30/+30
2016-06-23Auto merge of #34077 - durka:patch-23, r=alexcrichtonbors-4/+38
upgrade thread_local! invocation syntax Allows declaring multiple statics in one macro invocation, and supports attaching attributes to the generated items. In particular, `#![forbid(missing_docs, unused)]` is now tenable on a crate/module containing thread locals. For an example see [here](https://is.gd/aVFZZF). This change is fully backwards compatible as far as I can tell. cc @frankmcsherry
2016-06-23std: Fix up stabilization discrepanciesAlex Crichton-13/+25
* Remove the deprecated `CharRange` type which was forgotten to be removed awhile back. * Stabilize the `os::$platform::raw::pthread_t` type which was intended to be stabilized as part of #32804
2016-06-23Don't ignore errors of syscalls in std::sys::unix::fdTobias Bucher-4/+4
If any of these syscalls fail, it indicates a programmer error that should not be silently ignored.
2016-06-23Use `len` instead of `size_hint` where appropiateTobias Bucher-1/+1
This makes it clearer that we're not just looking for a lower bound but rather know that the iterator is an `ExactSizeIterator`.
2016-06-22upgrade thread_local! invocation syntaxAlex Burka-4/+38
Allows declaring multiple statics in one macro invocation, and supports attaching attributes to the generated items.
2016-06-22Use the correct types in float examplesOliver Middleton-24/+20
2016-06-22std: sync: Implement recv_timeout()Emilio Cobos Álvarez-42/+396
2016-06-22Parameters in doc comment should be formatted code-like.Corey Farwell-4/+4
2016-06-22Rollup merge of #34404 - ollie27:concat_idents, r=alexcrichtonManish Goregaokar-1/+1
Mark concat_idents! unstable This is mostly just a documentation fix as I don't think stability attributes have any effect on macros. [before](https://doc.rust-lang.org/nightly/std/macro.concat_idents!.html) [after](https://ollie27.github.io/rust_doc_test/std/macro.concat_idents!.html)
2016-06-22Rollup merge of #34363 - GuillaumeGomez:sleep, r=alexcrichtonManish Goregaokar-6/+15
Fix overflow error in thread::sleep Fixes #34330 I added a test to have a more clear error inside the function. Since `time_t` is `i64` and we expect `u64`, maybe we should changed the awaited type?
2016-06-21Mark concat_idents! unstableOliver Middleton-1/+1
This is mostly just a documentation fix as I don't think stability attributes have any effect on macros.
2016-06-21Rollup merge of #34371 - frewsxcv:thread-name, r=steveklabnikGuillaume Gomez-0/+31
Add examples for `std::thread::Thread::name`. None
2016-06-21Rollup merge of #34356 - matklad:cstr-docs, r=GuillaumeGomezGuillaume Gomez-0/+32
Document `CStr::as_ptr` dangers. r? @steveklabnik Hi! I've tried to document `CString::new("hello").unwrap().as_ptr()` footgun. Related [RFC] and the original [discussion]. [RFC]: https://github.com/rust-lang/rfcs/pull/1642 [discussion]: https://users.rust-lang.org/t/you-should-stop-telling-people-that-safe-rust-is-always-safe/6094
2016-06-21Fix overflow error in thread::sleepGuillaume Gomez-6/+15
2016-06-19Add examples for `std::thread::Thread::name`.Corey Farwell-0/+31
2016-06-19Auto merge of #34335 - ollie27:docs_collections_mods, r=GuillaumeGomezbors-2/+4
Add short summaries to btree modules Also improve hash_map and hash_set module short summaries. These are missing from [here](https://doc.rust-lang.org/nightly/std/collections/#modules). r? @steveklabnik
2016-06-19Document `CStr::as_ptr` dangers.Aleksey Kladov-0/+32