summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
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
2016-06-19Auto merge of #34313 - frewsxcv:panicking-example, r=steveklabnikbors-0/+29
Add example in docs for `std::thread::panicking`. None
2016-06-18Auto merge of #34314 - tshepang:misnamed, r=steveklabnikbors-8/+9
doc: fix mis-named binding & remove not needed `mut`
2016-06-17Add short summaries to btree modulesOliver Middleton-2/+4
Also improve hash_map and hash_set module short summaries.
2016-06-18Add example in docs for `std::thread::panicking`.Corey Farwell-0/+29
2016-06-16doc: fix mis-named binding & remove not needed `mut`Tshepang Lekhonkhobe-8/+9
2016-06-16Fix issue where rustbuild expected msvc to have arPeter Atashian-1/+2
Signed-off-by: Peter Atashian <retep998@gmail.com>
2016-06-16Rollup merge of #34270 - gkoz:error_file_exists, r=alexcrichtonManish Goregaokar-1/+12
Add ERROR_FILE_EXISTS to ErrorKind conversion on Windows Bug report: https://users.rust-lang.org/t/detecting-error-kind-for-opening-file/6215 Reference: https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx#error_file_exists
2016-06-15Auto merge of #33300 - seanmonstar:map-entry-take, r=alexcrichtonbors-0/+13
Map::Entry methods to recover key and value together See https://github.com/rust-lang/rust/issues/32281#issuecomment-213066344
2016-06-15Map::Entry::take() method to recover key and value togetherSean McArthur-0/+13
2016-06-15Fix a docs typoGleb Kozyrev-1/+1
2016-06-15Test ErrorKind::AlreadyExists for filesGleb Kozyrev-0/+9
2016-06-14Add ERROR_FILE_EXISTS to ErrorKind conversion on WindowsGleb Kozyrev-0/+2
Bug report: https://users.rust-lang.org/t/detecting-error-kind-for-opening-file/6215 Reference: https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx#error_file_exists
2016-06-13Improve IP reserved address docsOliver Middleton-20/+35
- Add links to all RFCs to make it clear these are not Rust RFCs. - Correct RFC numbers to match the numbers in [RFC 6890](https://tools.ietf.org/html/rfc6890) - Clean up formatting to show addresses and ranges in parentheses like (255.255.255.255)
2016-06-11run rustfmt on libstd/collections/hash folderSrinivas Reddy Thatiparthy-167/+178
2016-06-09doc: intro should be 1 sentenceTshepang Lekhonkhobe-2/+4
Also, do not repeat name of type
2016-06-09use the slice_pat hack in libstd tooAriel Ben-Yehuda-18/+21
2016-06-09fix stdtestAriel Ben-Yehuda-5/+8
2016-06-09address review commentsAriel Ben-Yehuda-5/+5
2016-06-09implement RFC495 semantics for slice patternsAriel Ben-Yehuda-6/+15
non-MIR translation is still not supported for these and will happily ICE. This is a [breaking-change] for many uses of slice_patterns.
2016-06-05test: don't assume anything about the sign of NAN.Eduard Burtescu-4/+10
2016-06-03Auto merge of #33803 - WiSaGaN:feature/rename-main-thread, r=alexcrichtonbors-1/+1
Rename main thread from "<main>" to "main". Fix issue #33789 We may need to discuss whether this counts as a breaking change since code may check the main thread name against "\<main\>". Discussion is in #33789
2016-06-03Auto merge of #33861 - Amanieu:lock_elision_fix, r=alexcrichtonbors-10/+113
Make sure Mutex and RwLock can't be re-locked on the same thread Fixes #33770 r? @alexcrichton