about summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2017-04-20Rollup merge of #41390 - scottmcm:toowned-clone-into, r=alexcrichtonCorey Farwell-1/+30
Override ToOwned::clone_into for Path and OsStr The only non-overridden one remaining is the CStr impl, which cannot be optimized as doing so would break CString's second invariant. Follow-up to 7ec27ae (PR #41009). r? @alexcrichton
2017-04-19Rollup merge of #41380 - ollie27:stability, r=BurntSushiCorey Farwell-1/+1
Fix a few stability attributes These show up in rustdoc so need to be correct.
2017-04-19Rollup merge of #41348 - lukaramu:std-path-docs, r=frewsxcvCorey Farwell-120/+257
Improve std::path docs Fixes #29368. This PR contains a pretty significant redistribution of some of the module docs to more appropriate places, as well as general expansion, clarification, and additional examples. For more details, see the commit descriptions. r? @steveklabnik
2017-04-18Override ToOwned::clone_into for Path and OsStrScott McMurray-1/+30
The only non-overridden one remaining is the CStr impl, which cannot be optimized as doing so would break CString's second invariant.
2017-04-18Fix a few stability attributesOliver Middleton-1/+1
These show up in rustdoc so need to be correct.
2017-04-18Rollup merge of #41364 - alexcrichton:less-backtrace-prune, r=petrochenkovCorey Farwell-80/+4
std: Back out backtrace pruning logic It was discovered #40264 that this backtrace pruning logic is a little too aggressive, so while we figure how out to handle #40264 this commit backs out the changes to prune frames. Note that other cosmetic changes, such as better path printing and such remain.
2017-04-18Rollup merge of #41353 - redox-os:master, r=alexcrichtonCorey Farwell-9/+18
Improve Process::spawn with piped stdio on Redox - Adds `dup2`, and uses it for stdio piping - Removes `O_CLOEXEC` from piped stdio, as `dup` on Redox does not disable O_CLOEXEC
2017-04-18std: Back out backtrace pruning logicAlex Crichton-80/+4
It was discovered #40264 that this backtrace pruning logic is a little too aggressive, so while we figure how out to handle #40264 this commit backs out the changes to prune frames. Note that other cosmetic changes, such as better path printing and such remain.
2017-04-18Fix typos in std::path's docslukaramu-4/+4
* Closed an unclosed paren * seperator -> separator * deperator -> separator
2017-04-18Allow us to remove masking in the futureest31-4/+4
2017-04-18Preserve sNaN payload when converting them to quiet NaNsest31-14/+35
2017-04-18Convert sNaN to quiet NaN instead of returning errorsest31-24/+36
2017-04-18assert_ne and tracking issueest31-5/+5
2017-04-18Add examples headingest31-0/+8
2017-04-18Return Err(()) when trying to convert sNaN representation to floatest31-14/+34
2017-04-18Add functions to safely transmute float to intest31-0/+103
2017-04-17Expand std::path::Display's docslukaramu-1/+20
Part of #29368. * Added explanation for why the struct exists * Added link to where it is created * Added example
2017-04-17Restructure and redistribute std::path's module docslukaramu-64/+55
Part of #29368. * Added a new summary paragraph about std::path's parsing facilities * Slightly exanded `Component`'s docs * removed the now redundant section on component types from the module docs * moved the section on path normalization during parsing to the docs on `Path::components` * Clarified difference between `Prefix` and `PrefixComponent` in their respecive summary sentences
2017-04-17Expand and add examples to std::path::{Prefix, PrefixComponent}'s docslukaramu-10/+106
Part of #29368.
2017-04-16Fix stdio descriptors in exec by removing cloexec if present. Use dup2 ↵Jeremy Soller-9/+18
instead of dup
2017-04-15Cleaned up throughout std::path's docslukaramu-47/+78
Part of #29368. * added missing links * updated method summaries to use 3rd person style * added missing periods in `Component`'s variant summaries * use standard iterator boilerplate in `Components`' and `Iter`'s docs * added example to `Iter::as_path`, adapted from `Components::as_path`'s example * consolidated examples for `Path::file_name` * some other small fixes
2017-04-15Rollup merge of #41311 - tedsta:fuchsia_error_codes, r=eddybCorey Farwell-34/+43
Update magenta error codes Update magenta error codes to match recent changes here: https://github.com/fuchsia-mirror/magenta/blob/master/system/public/magenta/errors.h
2017-04-15Auto merge of #41286 - lukaramu:std-collections-docs, r=frewsxcvbors-92/+195
Various improvements in std::collections docs The meat of this PR are: * changes to (almost all?) iterator struct docs in std::collections such that they use the standard iterator boilerplate and state where they are created * a bunch of added links (at least as much as possible given std::collections mostly being a facade and whatnot :sweat_smile:) * an example for `Bound` * changed phrasing for some summary sentences to be less redundant as well as more consistant with others in the module There also are various other fixes, e.g. removing parens from method names in the module docs, changing some imperatives to 3rd person, etc. r? @steveklabnik
2017-04-14Update magenta error codesTheodore DeRego-34/+43
2017-04-14Auto merge of #41122 - palango:mod-desc-floats, r=frewsxcvbors-2/+6
Improve module description for std::f32 and std::f64 Fixes #29353, see discussion there.
2017-04-13Various consistency and phrasing fixes in std::collections' docslukaramu-14/+11
* Changed btree_map's and hash_map's Entry (etc.) docs to be consistent * Changed VecDeque's type and module summary sentences to be consistent with each other as well as with other summary sentences in the module * Changed HashMap's and HashSet's summary sentences to be less redundantly phrased and also more consistant with the other summary sentences in the module * Also, added an example to Bound
2017-04-13Various fixes throughout std::collections' docslukaramu-66/+88
* Added links where possible (limited because of facading) * Changed references to methods from `foo()` to `foo` in module docs * Changed references to methods from `HashMap::foo` to just `foo` in top-level docs for `HashMap` and the `default` doc for `DefaultHasher` * Various small other fixes
2017-04-13Update std::collections' docs to use iterator (etc.) boilerplatelukaramu-14/+98
This greatly improves consistency.
2017-04-12Auto merge of #41008 - sagebind:thread_id, r=alexcrichtonbors-24/+13
Derive Hash for ThreadId + better example Derive `Hash` for `ThreadId` (see comments in #21507). Useful for making maps based on thread, e.g. `HashMap<ThreadId, ?>`. Also update example code for thread IDs to be more useful.
2017-04-12Rollup merge of #41243 - projektir:prim_str_docs, r=GuillaumeGomezTim Neumann-4/+4
Minor nits in primitive str Some minor updates to linking, added some links, doc format, etc. r? @GuillaumeGomez
2017-04-12Auto merge of #40765 - pirate:patch-3, r=aturonbors-0/+11
Add contribution instructions to stdlib docs Generally programming language docs have instructions on how to contribute changes. I couldn't find any in the rust docs, so I figured I'd add an instructions section, let me know if this belongs somewhere else!
2017-04-12Minor nits in primitive strprojektir-4/+4
2017-04-11Rollup merge of #41204 - remexre:master, r=steveklabnikCorey Farwell-1/+1
Fixes incorrect formatting in array's documentation. Changes - [`Clone`][clone] (only if `T: [Copy][copy]`) to - [`Clone`][clone] (only if `T: `[`Copy`](copy)) r? @steveklabnik
2017-04-11Improve module description for std::f32 and std::f64.Paul Lange-2/+6
Fixes #29353
2017-04-11Auto merge of #41096 - clarcharr:as_bytes_mut, r=alexcrichtonbors-3/+3
Reduce str transmutes, add mut versions of methods. When I was working on the various parts involved in #40380 one of the comments I got was the excess of transmutes necessary to make the changes work. This is part of a set of multiple changes I'd like to offer to fix this problem. I think that having these methods is reasonable because they're already possible via transmutes, and it makes the code that uses them safer. I can also add `pub(crate)` to these methods for now if the libs team would rather not expose them to the public without an RFC.
2017-04-10Fixes incorrect formatting in array's documentation.Nathaniel Ringo-1/+1
2017-04-10Auto merge of #41103 - projektir:channel_error_docs, r=GuillaumeGomezbors-51/+87
Channel error docs r? @steveklabnik I'm going to need some help on this one, a few ambiguities.
2017-04-09Minor fix to mutex exampleGeoffry Song-1/+1
Presumably `N` was supposed to be used in both places.
2017-04-09Reduce str transmutes, add mut versions of methods.Clar Charr-3/+3
2017-04-09Auto merge of #40829 - mgattozzi:ChildStderr, r=steveklabnikbors-2/+3
Update ChildStderr docs to be clearer Before the docs only had a line about where it was found and that it was a handle to stderr. This commit changes it so that the summary second line is removed and that it's a bit clearer about what can be done with it. Part of #29370
2017-04-09Auto merge of #41095 - clarcharr:as_extras, r=alexcrichtonbors-0/+6
Add as_c_str Again, tying up some consistencies with `CString`.
2017-04-08Adding links around Sender/SyncSender/Receiver errors; Adding more ↵projektir-51/+87
documentation to channel() and sync_channel(); adding more links #29377
2017-04-07fix build errorsNick Sweeting-2/+3
2017-04-07Add as_c_str.Clar Charr-0/+6
2017-04-07Rollup merge of #41120 - clarcharr:c_str_transmute, r=alexcrichtonCorey Farwell-2/+3
Remove some CStr transmutes. Because dedicated methods exist for these, we don't have to add other transmutes.
2017-04-06Remove some CStr transmutes.Clar Charr-2/+3
2017-04-06Rollup merge of #41111 - ollie27:docs_markdown_fix, r=GuillaumeGomezCorey Farwell-23/+40
Fix Markdown issues in the docs * Since the switch to pulldown-cmark reference links need a blank line before the URLs. (#40912) * Reference link references are not case sensitive. * Doc comments need to be indented uniformly otherwise rustdoc gets confused.
2017-04-06Rollup merge of #41090 - rap2hpoutre:patch-2, r=steveklabnikCorey Farwell-0/+21
Add example to std::process::abort This is a second step in order to complete this issue: https://github.com/rust-lang/rust/issues/29370 I submitted this PR with the help of @steveklabnik again. Thanks to him! More info here: https://github.com/rust-lang/rust/issues/29370#issuecomment-290653877
2017-04-06Fix Markdown issues in the docsOliver Middleton-23/+40
* Since the switch to pulldown-cmark reference links need a blank line before the URLs. * Reference link references are not case sensitive. * Doc comments need to be indented uniformly otherwise rustdoc gets confused.
2017-04-06Auto merge of #41039 - alexcrichton:process-poll, r=nagisabors-13/+9
std: Use `poll` instead of `select` This gives us the benefit of supporting file descriptors over the limit that select supports, which... Closes #40894