about summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2017-08-02Indicate how `ThreadId` is created.Corey Farwell-1/+5
2017-08-02Fix broken links in `Thread` docs.Corey Farwell-0/+3
2017-08-02Emphasise that these functions look at the disk, not just the pathKornel-2/+2
2017-08-02Fixed errors in libstd.Isaac van Bakel-2/+2
2017-08-02Rollup merge of #43597 - dhduvall:master, r=alexcrichtonCorey Farwell-1/+1
Fix the Solaris pthread_t raw type in std to match what's in libc The old type causes failures when building cargo 0.20.0 after rust-lang/libc@8304e06b5.
2017-08-01Add doc example for HashSet::drain.Corey Farwell-0/+16
2017-08-01Remove unnecessary clones in doc examples.Corey Farwell-11/+11
2017-08-01Show the capacity in HashSet::with_capacity doc example.Corey Farwell-0/+1
2017-08-01Remove unnecessary 'mut' bindings.Corey Farwell-2/+2
2017-08-01Indicate HashSet is code-like in docs.Corey Farwell-1/+1
2017-08-01Show that the capacity changed in HashSet::reserve doc example.Corey Farwell-0/+1
2017-08-01Add doc example for HashSet::hasher.Corey Farwell-0/+11
2017-08-01Fixed extra cases found in better checking.Isaac van Bakel-1/+1
2017-08-01Fixed all unnecessary muts in language coreIsaac van Bakel-4/+4
2017-08-01Fix the Solaris pthread_t raw type in std to match what's in libcDanek Duvall-1/+1
The old type causes failures when building cargo 0.20.0 after changeset 8304e06b5 in the libc repo.
2017-08-01add documentation for function pointers as a primitiveQuietMisdreavus-0/+101
2017-08-01Auto merge of #43560 - QuietMisdreavus:ref-docs, r=steveklabnikbors-0/+117
add docs for references as a primitive Just like #43529 did for function pointers, here is a new primitive page for references. This PR will pull in impls on references if it's a reference to a generic type parameter. Initially i was only able to pull in impls that were re-exported from another crate; crate-local impls got a different representation in the AST, and i had to change how types were resolved when cleaning it. (This is the change at the bottom of `librustdoc/clean/mod.rs`, in `resolve_type`.) I'm unsure the full ramifications of the change, but from what it looks like, it shouldn't impact anything major. Likewise, references to generic type parameters also get the `&'a [mut]` linked to the new page. cc @rust-lang/docs: Is this sufficient information? The listing of trait impls kinda feels redundant (especially if we can get the automated impl listing sorted again), but i still think it's useful to point out that you can use these in a generic context. Fixes #15654
2017-07-30add docs for references as a primitiveQuietMisdreavus-0/+117
2017-07-29Rollup merge of #43544 - redox-os:update_redox_sys, r=sfacklerMark Simulacrum-10/+62
Update redox sys - Add JoinHandleExt - Split FL and FD for fcntl
2017-07-29Split FL and FD fcntlsJeremy Soller-10/+12
2017-07-29Redox: Add JoinHandleExt (matching Unix version)Ian Douglas Scott-0/+50
2017-07-28rustbuild: Use Cargo's "target runner"Alex Crichton-2/+13
This commit leverages a relatively new feature in Cargo to execute cross-compiled tests, the `target.$target.runner` configuration. We configure it through environment variables in rustbuild and this avoids the need for us to locate and run tests after-the-fact, instead relying on Cargo to do all that execution for us.
2017-07-27Auto merge of #43477 - est31:master, r=alexcrichtonbors-12/+13
Switch to begin_panic again In https://github.com/rust-lang/rust/pull/42938 we made the compiler emit a call to begin_panic_new in order to pass column info to it. Now with stage0 updated (https://github.com/rust-lang/rust/pull/43320), we can safely change begin_panic and start emitting calls for it again.
2017-07-26Auto merge of #43373 - alexcrichton:stabilize-1.20.0, r=aturonbors-18/+8
Stabilize more APIs for the 1.20.0 release In addition to the few stabilizations that have already landed, this cleans up the remaining APIs that are in `final-comment-period` right now to be stable by the 1.20.0 release
2017-07-26Rollup merge of #43462 - dhduvall:solaris-libresolv, r=aturonMark Simulacrum-0/+1
DNS functions are in libresolv on Solaris, just like on MacOS
2017-07-26Rollup merge of #43456 - joshlf:spawn-doc-grammar, r=alexcrichtonMark Simulacrum-1/+1
std::thread::spawn: Fix grammar in documentation Closes #43435.
2017-07-26Rollup merge of #42959 - SimonSapin:nonzero-checked, r=sfacklerMark Simulacrum-3/+3
Make the "main" constructors of NonZero/Shared/Unique return Option Per discussion in https://github.com/rust-lang/rust/issues/27730#issuecomment-303939441. This is a breaking change to unstable APIs. The old behavior is still available under the name `new_unchecked`. Note that only that one can be `const fn`, since `if` is currently not allowed in constant contexts. In the case of `NonZero` this requires adding a new `is_zero` method to the `Zeroable` trait. I mildly dislike this, but it’s not much worse than having a `Zeroable` trait in the first place. `Zeroable` and `NonZero` are both unstable, this can be reworked later.
2017-07-26Auto merge of #43226 - alexcrichton:aarch64-ci, r=aidanhsbors-2/+11
Add a disabled builder for aarch64 emulated tests This commit adds a disabled builder which will run all tests for the standard library for aarch64 in a QEMU instance. Once we get enough capacity to run this on Travis this can be used to boost our platform coverage of AArch64
2017-07-25Correct 'stable' attributeIan Douglas Scott-6/+6
2017-07-25Switch to begin_panic againest31-12/+13
In https://github.com/rust-lang/rust/pull/42938 we made the compiler emit a call to begin_panic_new in order to pass column info to it. Now with stage0 updated (https://github.com/rust-lang/rust/pull/43320), we can safely change begin_panic and start emitting calls for it again.
2017-07-25std: Stabilize the `str_{mut,box}_extras` featureAlex Crichton-9/+0
Stabilizes * `<&mut str>::as_bytes_mut` * `<Box<str>>::into_boxed_bytes` * `std::str::from_boxed_utf8_unchecked` * `std::str::from_utf8_mut` * `std::str::from_utf8_unchecked_mut` Closes #41119
2017-07-25Stabilize the `compile_error_macro` featureAlex Crichton-1/+1
Stabilizes: * `compile_error!` as a macro defined by rustc Closes #40872
2017-07-25std: Stabilize CString/OsString/PathBuf extra methodsAlex Crichton-7/+7
Stabilizes: * `CString::as_c_str` * `CString::into_boxed_c_str` * `CStr::into_c_string` * `OsString::into_boxed_os_str` * `OsStr::into_os_string` * `PathBuf::into_boxed_path` * `PathBuf::into_path_buf` Closes #40380
2017-07-25std: Stabilize `char_escape_debug`Alex Crichton-1/+0
Stabilizes: * `<char>::escape_debug` * `std::char::EscapeDebug` Closes #35068
2017-07-25Bump master to 1.21.0Alex Crichton-71/+2
This commit bumps the master branch's version to 1.21.0 and also updates the bootstrap compiler from the freshly minted beta release.
2017-07-24Add a disabled builder for aarch64 emulated testsAlex Crichton-2/+11
This commit adds a disabled builder which will run all tests for the standard library for aarch64 in a QEMU instance. Once we get enough capacity to run this on Travis this can be used to boost our platform coverage of AArch64
2017-07-24DNS functions are in libresolv on Solaris, just like on MacOSDanek Duvall-0/+1
2017-07-24Implement AsRawFd for Stdin, Stdout, and StderrIan Douglas Scott-0/+33
2017-07-24std::thread::spawn: Fix grammar in documentationJoshua Liebow-Feeser-1/+1
2017-07-24Rollup merge of #43428 - waywardmonkeys:doc-fixes, r=estebankMark Simulacrum-8/+8
Fix some doc/comment typos.
2017-07-24Rollup merge of #43379 - s3rvac:fix-exit-status-success-description, ↵Mark Simulacrum-2/+2
r=GuillaumeGomez Add a missing verb to the description of std::process::ExitStatus::success() "Signal termination not considered" -> "Signal termination **is** not considered" The first line of the description was rewrapped so it fits into 80 characters.
2017-07-24Rollup merge of #43366 - leshow:bufreader-docs, r=aturonMark Simulacrum-10/+10
Fix docs: BufReader/File doesn't need to be mut Neither `BufReader` nor `File` need to be declared `mut` for most of these examples. The cookbook example using `BufReader` doesn't declare them as `mut` either (https://brson.github.io/rust-cookbook/basics.html#ex-std-read-lines).
2017-07-23Fix some doc/comment typos.Bruce Mitchener-8/+8
2017-07-23Auto merge of #43256 - Others:patch-1, r=steveklabnikbors-4/+1
Improve panic docs for Instant::duration_since The docs for Instant::duration_since has a confusing section on panicking. It's much more clear without the second two sentences of description.
2017-07-22Add conversions from references to NonZero pointers, Unique, and SharedSimon Sapin-1/+1
2017-07-22Rename {NonZero,Shared,Unique}::new to new_uncheckedSimon Sapin-3/+3
2017-07-21Add a missing verb to the description of std::process::ExitStatus::success().Petr Zemek-2/+2
"Signal termination not considered" -> "Signal termination is not considered" The first line of the description was rewrapped so it fits into 80 characters.
2017-07-20Remove mut where possibleEvan Cameron-10/+10
2017-07-18Rollup merge of #43315 - est31:stabilize_float_bits_conv, r=alexcrichtonMark Simulacrum-4/+4
float_bits_conv made it into 1.20 It seems that my PR to stabilize the `float_bits_conv` feature got merged before beta branched, which means I'm lucky, and the stabilization makes it into Rust 1.20. As it was against my expectations, the version number has to be corrected from 1.21 to 1.20. Please also apply this PR to the beta branch.
2017-07-18Rollup merge of #43304 - ids1024:path2, r=aturonMark Simulacrum-21/+28
redox: handle multiple paths in PATH