about summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
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-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-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
2017-07-18Rollup merge of #43294 - insaneinside:std-time-duration-docs, r=aturonMark Simulacrum-14/+16
`std::time::Duration`: improve _precision_ of terminology in docs Changed wording of docs on `std::time::Duration` for better clarity w.r.t. the contents of the type and the purpose of its methods. (Specifically, removed the use of the word "precision" to describe the fractional part of the `Duration` because "precision" is more properly used to describe how _precise_ a value is, i.e. its granularity in this case.)
2017-07-18float_bits_conv made it into 1.20est31-4/+4
2017-07-17redox: handle multiple paths in PATHIan Douglas Scott-21/+28
2017-07-17`std::time::Duration`: improve _precision_ of terminology in docsCollin J. Sutton-14/+16
Changed wording of docs on `std::time::Duration` for better clarity w.r.t. the contents of the type and the purpose of its methods.
2017-07-18libstd: remove redundant & from &Path::new(...)NODA, Kai-7/+7
fn Path::new<S: AsRef ...>(s: &S) -> &Path Signed-off-by: NODA, Kai <nodakai@gmail.com>
2017-07-17Auto merge of #43055 - est31:stabilize_float_bits_conv, r=sfacklerbors-9/+4
Stabilize float_bits_conv for Rust 1.21 Stabilizes the `float_bits_conv` lib feature for the 1.20 release of Rust. I've initially implemented the feature in #39271 and later made PR #43025 to output quiet NaNs even on platforms with different encodings, which seems to have been the only unresolved issue of the API. Due to PR #43025 being only applied to master this stabilisation can't happen for Rust 1.19 through the usual "stabilisation on beta" system that is being done for library APIs. r? @BurntSushi closes #40470.
2017-07-15Improve panic docs for Instant::duration_sinceOthers-4/+1
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-15Auto merge of #43246 - frewsxcv:rollup, r=frewsxcvbors-16/+26
Rollup of 8 pull requests - Successful merges: #43074, #43145, #43159, #43202, #43222, #43228, #43229, #43240 - Failed merges:
2017-07-15Auto merge of #43185 - durka:thread-local-pub-restricted, r=alexcrichtonbors-1/+58
support pub(restricted) in thread_local! (round 2) Resurrected #40984 now that the issue blocking it was fixed. Original description: `pub(restricted)` was stabilized in #40556 so let's go! Here is a [playground](https://play.rust-lang.org/?gist=f55f32f164a6ed18c219fec8f8293b98&version=nightly&backtrace=1). I changed the interface of `__thread_local_inner!`, which is supposedly unstable but this is not checked for macros (#34097 cc @petrochenkov @jseyfried), so this may be an issue.
2017-07-14Rollup merge of #43229 - kennytm:return-false-if-path-is-relative-hahaha, ↵Corey Farwell-10/+10
r=steveklabnik Fix minor typo in std::path documentation. Fix minor typo in `std::path` documentation. Replace all `'C' as u8` with `b'C'`.
2017-07-14Rollup merge of #43228 - redox-os:backtrace_fix, r=alexcrichtonCorey Farwell-4/+14
Fix backtrace on Redox This fixes sys::backtrace on Redox
2017-07-14Rollup merge of #43222 - RalfJung:symlink, r=sfacklerCorey Farwell-1/+1
windows::fs::symlink_dir: fix example to actually use symlink_dir I don't have a windows machine, so I couldn't test if this doctest still works -- but it looks trivial enough. (I know, famous last words.)
2017-07-14Rollup merge of #43202 - jackpot51:patch-1, r=sfacklerCorey Farwell-1/+1
Fix sys::redox::net::tcp A change to the upper level API needed to be filtered down
2017-07-13Fix backtrace on RedoxJeremy Soller-4/+14
2017-07-14Fix minor typo in std::path documentation.kennytm-10/+10
Replace all `'C' as u8` with `b'C'`.
2017-07-13windows::fs::symlink_dir: fix example to actually use symlink_dirRalf Jung-1/+1
2017-07-13Rollup merge of #43204 - jackpot51:patch-3, r=alexcrichtonSteve Klabnik-3/+4
Implement fs::rename in sys::redox This uses a simple implementation of copy + unlink. Redox does not have a rename or link system call for a faster implementation.
2017-07-13Rollup merge of #43203 - jackpot51:patch-2, r=alexcrichtonSteve Klabnik-19/+1
Remove obsolete oom handler from sys::redox Alloc no longer has set_oom_handler.
2017-07-13Rollup merge of #42926 - Havvy:doc-path-ext, r=steveklabnikSteve Klabnik-0/+34
Document what happens on failure in path ext is_file is_dir r? @steveklabnik Also, what other ways could there be an error that gets discarded and returns false? Should we list them all? Should we say that any errors trying to access the metadata at that path causes it to return false, even if there might be a file or directory there? Should I add a See also link to the original functions that do return Results?
2017-07-13Auto merge of #43158 - PlasmaPower:thread-local-try-with, r=alexcrichtonbors-18/+58
Thread local try with https://github.com/rust-lang/rfcs/pull/2030 was turned into this PR (the RFC was closed, but it looks like just a PR should be good). See also: state stabilization issue: #27716 `try_with` is used in two places in std: stdio and thread_info. In stdio, it would be better if the result was passed to the closure, but in thread_info, it's better as is where the result is returned from the function call. I'm not sure which is better, but I prefer the current way as it better represents the scope.
2017-07-12Update fs.rsJeremy Soller-1/+1
2017-07-12Update mod.rsJeremy Soller-3/+1
2017-07-12Update fs.rsJeremy Soller-2/+3
2017-07-12Update mod.rsJeremy Soller-17/+1
2017-07-12Update tcp.rsJeremy Soller-1/+1
2017-07-12Document error coercion to false in path-ext methods + see also sectionsHavvy-0/+34
2017-07-12Use try_with for with implementationLee Bousfield-9/+2
2017-07-12Rollup merge of #43137 - ollie27:stab, r=aturonMark Simulacrum-4/+4
Correct some stability attributes These show up in rustdoc so need to be correct.
2017-07-12Rollup merge of #43136 - jgallag88:bufWriterDocs, r=steveklabnikMark Simulacrum-1/+5
Add warning to BufWriter documentation When using `BufWriter`, it is very easy to unintentionally ignore errors, because errors which occur when flushing buffered data when the `BufWriter` is dropped are ignored. This has been noted in a couple places: #32677, #37045. There has been some discussion about how to fix this problem in #32677, but no solution seems likely to land in the near future. For now, anyone who wishes to have robust error handling must remember to manually call `flush()` on a `BufWriter` before it is dropped. Until a permanent fix is in place, it seems worthwhile to add a warning to that effect to the documentation.
2017-07-12Rollup merge of #43100 - ids1024:stat2, r=aturonMark Simulacrum-2/+17
Redox: add stat methods(); support is_symlink()
2017-07-12Rollup merge of #42670 - dns2utf8:panic_return_code, r=steveklabnikMark Simulacrum-0/+5
Add hint about the return code of panic! I hope the link works on all cases, since the `unreachable` doc is copied to `std::` as well.
2017-07-12Auto merge of #42697 - Mark-Simulacrum:take-limit, r=aturonbors-0/+29
Allow setting the limit on std::io::Take. Fixes https://github.com/rust-lang/rust/issues/27269.
2017-07-11Redox: Use O_NOFOLLOW for lstat()Ian Douglas Scott-1/+5
2017-07-11stage0 fallbackAlex Burka-0/+67
2017-07-11use :vis in thread_local!Alex Burka-30/+9
2017-07-11support pub(restricted) in thread_local!Alex Burka-32/+43
2017-07-11Fix @alexcrichton commentsLee Bousfield-9/+15
2017-07-11Wrap long lineStefan Schindler-1/+2
2017-07-11Allow setting the limit on std::io::Take.Mark Simulacrum-0/+29
2017-07-10Use LocalKey::try_with in stdLee Bousfield-22/+11