about summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2018-01-13Rollup merge of #47375 - overvenus:duration-examples, r=dtolnaykennytm-2/+2
Fix examples of Duration::subsec_millis and Duration::subsec_micros Update examples of `Duration::subsec_millis` and `Duration::subsec_micros`, because they are not for these two methods actually.
2018-01-13Rollup merge of #47357 - whentze:osstr-doc-fix, r=GuillaumeGomezkennytm-2/+5
Fix docs for OsStr At present, there are two small issues with the [docs](https://doc.rust-lang.org/std/ffi/struct.OsStr.html) for std::ffi::OsStr: - The docs say "OsStr is to OsString as String is to &str: the former in each pair are borrowed references; the latter are owned strings.". The latter pair is mixed up: String is the owned variant whereas &str is the borrowed reference. - The doc links to String and &str are broken and render as [String] and [&str]. This PR fixes these issues.
2018-01-13Rollup merge of #47340 - alercah:typo-fix, r=GuillaumeGomezkennytm-1/+1
Fix typo.
2018-01-13Rollup merge of #47324 - mbrubeck:len, r=sfacklerkennytm-2/+10
Pre-allocate in fs::read and fs::read_string This is a simpler alternative to #46340 and #45928, as requested by the libs team.
2018-01-13Rollup merge of #47310 - bmusin:patch-1, r=sfacklerkennytm-1/+1
fix typo rwlock.rs Hi. Fixed typo: contained -> content
2018-01-13Rollup merge of #46985 - Diggsey:path-component-asref, r=alexcrichtonkennytm-0/+7
Implement AsRef<Path> for Component Fixes #41866
2018-01-12Fix Duration::subsec_millis and Duration::subsec_micros examplesNeil Shen-2/+2
2018-01-11s/OsStr/&OsStr in docs to align with &str/String comparisonmuvlon-2/+3
2018-01-11Fix dead links in docs for OsStrmuvlon-0/+2
2018-01-11Fix confusing documentation for OsStrmuvlon-1/+1
2018-01-10Fix typo.Alexis Hunt-1/+1
2018-01-10Pre-allocate in fs::read and fs::read_stringMatt Brubeck-2/+10
2018-01-10Auto merge of #46830 - Diggsey:cursor-vec-mut, r=alexcrichtonbors-32/+58
Implement `Write` for `Cursor<&mut Vec<T>>` Fixes #30132 r? @dtolnay (I'm just going through `feature-accepted` issues I swear 😛)
2018-01-10fix typo rwlock.rsBulat Musin-1/+1
Hi. Fixed typo: contained -> content
2018-01-09Rollup merge of #47285 - AndrewBrinker:master, r=kennytmCorey Farwell-1/+1
Fixed a typo in the compile_error docs Noticed a typo and fixed it.
2018-01-10We have Rust 1.25 nowest31-1/+1
2018-01-10Stabilize the panic_col featureest31-2/+1
I've added the panic_col feature in PR #42938. Now it's time to stabilize it! Closes #42939.
2018-01-08Fixed a typo in the compile_error docsAndrew Brinker-1/+1
2018-01-09Rollup merge of #47272 - GuillaumeGomez:missing-links, r=QuietMisdreavuskennytm-7/+14
Add missing links r? @QuietMisdreavus (please wait for CI, I have a few doubts about the `Write` trait links...)
2018-01-09Rollup merge of #47259 - sfackler:map-remove-entry, r=dtolnaykennytm-1/+49
Add HashMap::remove_entry Implements #46344 r? @dtolnay
2018-01-09Rollup merge of #47254 - rkruppe:no-more-align-hack, r=alexcrichtonkennytm-12/+3
Replace empty array hack with repr(align) As a side effect, this fixes the warning about repr(C, simd) that has been reported during x86_64 windows builds since #47111 (see also: #47103) r? @alexcrichton
2018-01-08Add missing linksGuillaume Gomez-7/+14
2018-01-07Add HashMap::remove_entrySteven Fackler-1/+49
Implements #46344
2018-01-07Replace empty array hack with repr(align)Robin Kruppe-12/+3
As a side effect, this fixes the warning about repr(C, simd) that has been reported during x86_64 windows builds since #47111 (see also: #47103)
2018-01-07Make wasm obey backtrace feature, like other targetsAidan Hobson Sayers-0/+1
2018-01-07Rollup merge of #47217 - stjepang:set-examples, r=frewsxcvkennytm-0/+33
Write examples for {BTree,Hash}Set::{get,replace,take}
2018-01-06Auto merge of #47141 - alexcrichton:bump-bootstrap, r=alexcrichtonbors-48/+3
Bump to 1.25.0 * Bump the release version to 1.25 * Bump the bootstrap compiler to the recent beta * Allow using unstable rustdoc features on beta - this fix has been applied to the beta branch but needed to go to the master branch as well.
2018-01-06Rollup merge of #47216 - SergioBenitez:doc-fix, r=Mark-SimulacrumGuillaume Gomez-1/+1
Clarify appending behavior of 'io::Read::read_to_string()'. A simple doc clarification.
2018-01-06Rollup merge of #47165 - mbrubeck:args, r=alexcrichtonGuillaume Gomez-23/+16
[unix] Don't clone command-line args on startup Fixes part of #47164 and simplifies the `args` code on non-Apple Unix platforms. Note: This could change behavior for programs that use both `std::env::args` *and* unsafe code that mutates `argv` directly. However, these programs already behave differently on different platforms. The new behavior on non-Apple platforms is closer to the existing behavior on Apple platforms.
2018-01-06Rollup merge of #46987 - frewsxcv:frewsxcv-current-exe, r=QuietMisdreavusGuillaume Gomez-8/+11
Minor rewrite of env::current_exe docs; clarify symlinks. - Update example in ‘security’ section to use hard links, like the linked securityvulns.com example. - Weaken language on symbolic links – indicate behavior is platform-specific Fixes https://github.com/rust-lang/rust/issues/43617.
2018-01-05Write examples for {BTree,Hash}Set::{get,replace,take}Stjepan Glavina-0/+33
2018-01-05Clarify appending behavior of 'io::Read::read_to_string()'.Sergio Benitez-1/+1
2018-01-05Rollup merge of #47198 - dzamlo:patch-2, r=frewsxcvkennytm-2/+2
Fix an error in std::process documentation
2018-01-05Rollup merge of #47030 - ollie27:stab, r=alexcrichtonkennytm-14/+14
Correct a few stability attributes * The extra impls for `ManuallyDrop` were added in #44310 which was only stabilised in 1.22.0. * The impls for `SliceIndex` were stabilised in #43373 but as `RangeInclusive` and `RangeToInclusive` are still unstable the impls should remain unstable. * The `From` impls for atomic integers were added in #45610 but most atomic integers are still unstable. * The `shared_from_slice2` impls were added in #45990 but they won't be stable until 1.24.0. * The `Mutex` and `RwLock` impls were added in #46082 but won't be stable until 1.24.0.
2018-01-04[unix] Don't clone command-line args on startupMatt Brubeck-23/+16
2018-01-04Fix an error in std::process documentationLoïc Damien-2/+2
2018-01-04Bump to 1.25.0Alex Crichton-48/+3
* Bump the release version to 1.25 * Bump the bootstrap compiler to the recent beta * Allow using unstable rustdoc features on beta - this fix has been applied to the beta branch but needed to go to the master branch as well.
2018-01-02Document when LineWriter flushes; document errors for into_inner.Corey Farwell-0/+11
Fixes https://github.com/rust-lang/rust/issues/42468.
2018-01-02Auto merge of #47042 - redox-os:redox, r=estebankbors-7/+34
Redox - Implement rename using new system call This does the following: - Update syscall module to match upstream - Implement rename using new system call - Make readlink and symlink utilize O_CLOEXEC - Make readlink and symlink not leave dangling file handles on failure
2017-12-31Auto merge of #46713 - Manishearth:memchr, r=blussbors-232/+5
Use memchr to speed up [u8]::contains 3x None
2017-12-30Fix doc typo for is_ascii_graphicvarkor-1/+1
Fixes #47067.
2017-12-29Auto merge of #47026 - EdSchouten:cloudabi-unwind, r=kennytmbors-1/+8
Link against -lunwind on CloudABI. CloudABI makes use of LLVM's libunwind to do stack unwinding. It is installed under the name libunwind.a.
2017-12-29Add proper library dependencies for libstd on CloudABI.Ed Schouten-1/+8
Don't attempt to build libunwind on CloudABI, as libunwind is already provided by the system by default.
2017-12-28Remove an unused import for cfg(not(feature = "backtrace")).Ed Schouten-2/+0
The 'mem' module is not used for this specific code. This was copy-pasted in by accident when adding RFC 1937 (? in main) support.
2017-12-28Implement AsRef<Path> for ComponentDiggory Blake-0/+7
2017-12-27Implement rename using new system callJeremy Soller-7/+34
Fix readlink and symlink to utilize O_CLOEXEC
2017-12-27Auto merge of #46479 - bkchr:termination_trait, r=arielb1bors-2/+144
Implements RFC 1937: `?` in `main` This is the first part of the RFC 1937 that supports new `Termination` trait in the rust `main` function. Thanks @nikomatsakis, @arielb1 and all other people in the gitter channel for all your help! The support for doctest and `#[test]` is still missing, bu as @nikomatsakis said, smaller pull requests are better :)
2017-12-27Correct a few stability attributesOliver Middleton-14/+14
2017-12-27Auto merge of #46977 - est31:column_fix, r=dtolnaybors-6/+12
Make the output of the column! macro 1 based Fixes #46868. I didn't add any regression tests as the change already had to change tests inside the codebase. r? @dtolnay
2017-12-26Don't use `process::exit` as it is an `unreachable` on wasm32Bastian Köcher-6/+5