about summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2017-02-23rposition() -> rev().position() (#2)Vadim Petrochenkov-1/+1
2017-02-23Fix tests on Windows (#1)Vadim Petrochenkov-40/+56
2017-02-23Add missing urls in MutexGuard docsGuillaume Gomez-1/+3
2017-02-23Add missing urls and examples for Condvar docsGuillaume Gomez-16/+230
2017-02-22Merge branch 'master' of https://github.com/rust-lang/rust into readdirRaph Levien-57/+83
2017-02-22Update name_bytes, scoop up latest libcRaph Levien-3/+3
Update the implementation of name_bytes to use the owned string (which is thread safe). Also bump the src/liblibc submodule now that's merged.
2017-02-22Clarify thread::Builder::stack_sizeAleksey Kladov-3/+6
2017-02-21Switch Fuchsia to readdir (instead of readdir_r)Raph Levien-11/+12
The readdir_r function is deprecated on newer Posix systems because of various problems, and not implemented at all for Fuchsia. There are already implementations using both, and this patch switches Fuchsia over to the readdir-based one. Fixes #40021 for Fuchsia, but that issue also contains discussion of what should happen for other Posix systems.
2017-02-21std: Relax UnwindSafe impl for UniqueAlex Crichton-1/+1
Add the `?Sized` bound as we don't require the type to be sized. Closes #40011
2017-02-21Add missing urls and examples into Barrier structsGuillaume Gomez-7/+69
2017-02-21Get linkchecker cleanSteve Klabnik-3/+3
This affects the book, some missed things in the reference, the grammar, and the standard library. Whew!
2017-02-21Auto merge of #39874 - amosonn:master, r=alexcrichtonbors-10/+49
Fixes overflow in libsdt/io/cursor.rs "seek" Fixes #39631 Test which fails (with old implementation), then fix to implementation.
2017-02-21changed stability annotationslukaramu-2/+2
Changed stability annotations for the new Error and Display impls for std::ffi::FromBytesWithNulError as they aren't subject to stability the same way.
2017-02-20Simplify adaptive hashmaparthurprs-23/+11
2017-02-20Rollup merge of #39976 - steveklabnik:reenable-book-linkchecker, r=frewsxcvCorey Farwell-3/+3
Reenable linkchecker for books In some senses, this is a revert of https://github.com/rust-lang/rust/pull/39633/commits/cacb3bc9c741a7d41a1085af850cd3ff852307f5#diff-b64563d143f859565c8357a28ef81101R212; we disabled linkchecker for the book because the links were added by JavaScript. Now, that's fixed upstream, and so we can re-enable the checker. This also involves two other fixes: we have to check for `name`s as well as `id`s for links, and the linking algorithm of mdBook changed to the same as rustdoc's, so we change some links back. ~~~This isn't quite ready yet; it's [depending on a PR of mine to mdBook](https://github.com/azerupi/mdBook/pull/209). After that's released, this should be the last of these kinds of shenanigans~~~ 😄 This is good to go 😄
2017-02-20Rollup merge of #39937 - arthurprs:hm-adapt, r=frewsxcvCorey Farwell-5/+5
Fix spelling in hashmap comments Fixing my bad english from #38368 Note to self: triple check spelling/grammar
2017-02-20Revert "Fix up links"Steve Klabnik-3/+3
This reverts commit 7f1d1c6d9a7be5e427bace30e740b16b25f25c92. The original commit was created because mdBook and rustdoc had different generation algorithms for header links; now with https://github.com/rust-lang/rust/pull/39966 , the algorithms are the same. So let's undo this change. ... when I came across this problem, I said "eh, this isn't fun, but it doesn't take that long." I probably should have just actually taken the time to fix upstream, given that they were amenable. Oh well!
2017-02-19added Error and Display impl for std::ffi::FromBytesWithNulErrorlukaramu-0/+14
2017-02-19Auto merge of #39871 - binarycrusader:issue-39868, r=alexcrichtonbors-29/+9
libstd needs update for pending libc change This updates libstd to accommodate the fixes made in https://github.com/rust-lang/libc/pull/523 Fixes #39868
2017-02-18Fix spelling in commentsarthurprs-5/+5
2017-02-18Rollup merge of #39928 - GuillaumeGomez:env_func_urls, r=frewsxcvGuillaume Gomez-4/+11
Add missing urls for env functions r? @frewsxcv
2017-02-18Rollup merge of #39862 - stjepang:fix-wording-localkey, r=GuillaumeGomezGuillaume Gomez-3/+3
Fix wording in LocalKey documentation Fixes #39841 r? @GuillaumeGomez
2017-02-18Add missing urls for env functionsGuillaume Gomez-4/+11
2017-02-17Follow rename of mx_handle_wait Magenta syscallsRaph Levien-3/+7
The mx_handle_wait_* syscalls in Magenta were renamed to mx_object_wait. The syscall is used in the Magenta/Fuchsia implementation of std::process, to wait on child processes. In addition, this patch enables the use of the system provided libbacktrace library on Fuchsia targets. Symbolization is not yet working, but at least it allows printing hex addresses in a backtrace and makes building succeed when the backtrace feature is not disabled.
2017-02-16Resize hashmap when long probes are detectedarthurprs-12/+105
2017-02-15simplify home_dir by removing unnecessary getpwuid_r wrapperShawn Walker-Salas-18/+9
2017-02-15Rollup merge of #39861 - retep998:small-fix, r=alexcrichtonCorey Farwell-1/+1
Fix parameter to GetUserProfileDirectoryW
2017-02-15Rollup merge of #39844 - king6cong:sys, r=alexcrichtonCorey Farwell-6/+6
sys/mod doc update and mod import order adjust * Some doc updates. * Racer currently use the first mod it finds regardless of cfg attrs. Moving #[cfg(unix)] up should be a temporary tweak that works as expected for more people.
2017-02-15Rollup merge of #39839 - king6cong:refine-doc, r=frewsxcvCorey Farwell-1/+1
make doc consistent with var name
2017-02-16std::io::cursor: Fixed Seek so test passes.Amos Onn-10/+12
2017-02-15libstd needs update for pending libc changeShawn Walker-Salas-11/+0
Fixes #39868
2017-02-16std::io::cursor Added test for seeking beyond i64.Amos Onn-0/+37
2017-02-15Fix wording in LocalKey documentationStjepan Glavina-3/+3
2017-02-15Fix parameter to GetUserProfileDirectoryWPeter Atashian-1/+1
2017-02-15Improve backtrace formating while panicking.Yamakaky-514/+732
- `RUST_BACKTRACE=full` prints all the informations (old behaviour) - `RUST_BACKTRACE=(0|no)` disables the backtrace. - `RUST_BACKTRACE=<everything else>` (including `1`) shows a simplified backtrace, without the function addresses and with cleaned filenames and symbols. Also removes some unneded frames at the beginning and the end. Fixes #37783. PR is #38165.
2017-02-15sys/mod doc update and mod import order adjustking6cong-6/+6
2017-02-15Auto merge of #39594 - clarcharr:cstr_box, r=aturonbors-1/+184
Conversions between CStr, OsStr, Path and boxes This closes a bit of the inconsistencies between `CStr`, `OsStr`, `Path`, and `str`, allowing people to create boxed versions of DSTs other than `str` and `[T]`. Full list of additions: * `Default` for `Box<str>`, `Box<CStr>`, `Box<OsStr>`, and `Box<Path>` (note: `Default` for `PathBuf` is already implemented) * `CString::into_boxed_c_str` (feature gated) * `OsString::into_boxed_os_str` (feature gated) * `Path::into_boxed_path` (feature gated) * `From<&CStr> for Box<CStr>` * `From<&OsStr> for Box<OsStr>` * `From<&Path> for Box<Path>` This also includes adding the internal methods: * `sys::*::os_str::Buf::into_box` * `sys::*::os_str::Slice::{into_box, empty_box}` * `sys_common::wtf8::Wtf8Buf::into_box` * `sys_common::wtf8::Wtf8::{into_box, empty_box}`
2017-02-15Auto merge of #39560 - F001:retainHashMap, r=alexcrichtonbors-46/+182
std: Add retain method for HashMap and HashSet Fix #36648 r? @bluss
2017-02-15make doc consistent with var nameking6cong-1/+1
2017-02-15Auto merge of #39633 - steveklabnik:vendor-mdbook, r=alexcrichtonbors-3/+3
Port books to mdbook Part of https://github.com/rust-lang/rust/issues/39588 blocked on https://github.com/rust-lang/rust/pull/39431 As a first step towards the bookshelf, we ~vendor mdbook in-tree and~ port our books to it. Eventually, both of these books will be moved out-of-tree, but the nightly book will rely on doing the same thing. As such, this intermediate step is useful. r? @alexcrichton @brson /cc @azerupi
2017-02-14Conversions between CStr/OsStr/Path and boxes.Clar Charr-1/+184
2017-02-14Rollup merge of #39659 - zackw:asciiext-ctype, r=alexcrichtonCorey Farwell-0/+858
Add equivalents of C's <ctype.h> functions to AsciiExt. * `is_ascii_alphabetic` * `is_ascii_uppercase` * `is_ascii_lowercase` * `is_ascii_alphanumeric` * `is_ascii_digit` * `is_ascii_hexdigit` * `is_ascii_punctuation` * `is_ascii_graphic` * `is_ascii_whitespace` * `is_ascii_control` This addresses issue #39658. Lightly tested on x86-64-linux. tidy complains about the URLs in the documentation making lines too long, I don't know what to do about that.
2017-02-13Add feature annotations to the doctests for ascii_ctype.Zack Weinberg-0/+20
2017-02-13Fix up linksSteve Klabnik-3/+3
mdbook and rustdoc generate links differently, so we need to change all these links.
2017-02-13Squeeze URL lines under 100 chars wide to make tidy happy.Zack Weinberg-7/+7
2017-02-12Rollup merge of #39662 - Henning-K:patch-1, r=frewsxcvGuillaume Gomez-1/+1
Fixes #39661 Clarifies the potential ambiguity.
2017-02-10Rollup merge of #39721 - whataloadofwhat:catch-unwind-bang, r=alexcrichtonCorey Farwell-23/+14
Change std::panicking::try::Data into a union No longer potentially call `mem::uninitialized::<!>()` Fixes #39432
2017-02-10Change std::panicking::try::Data into a unionwhataloadofwhat-23/+14
No longer potentially call `mem::uninitialized::<!>()` Fixes #39432
2017-02-09Update set operations documentationJethro Beekman-7/+13
Reminding people of set terminology.
2017-02-08Rollup merge of #39649 - GuillaumeGomez:join_paths-url, r=frewsxcvCorey Farwell-4/+8
Add missing urls on join_paths r? @frewsxcv