summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2017-04-26added moveChristian Poveda-1/+1
2017-04-25Rollup merge of #41518 - tbu-:pr_fix_cp_error, r=sfacklerCorey Farwell-1/+1
Fix a copy-paste error in `Instant::sub_duration` Fixes #41514.
2017-04-25Rollup merge of #41463 - SergioBenitez:master, r=alexcrichtonCorey Farwell-0/+139
Add internal accessor methods to io::{Chain, Take}. Resolves #29067.
2017-04-25Rollup merge of #41442 - tbu-:pr_writeall_interrupted, r=aturonCorey Farwell-6/+16
Specify behavior of `write_all` for `ErrorKind::Interrupted` errors Also spell out that read and write operations should be retried on `ErrorKind::Interrupted` errors. Fixes #38494.
2017-04-25rewrote the thread struct docsChristian Poveda-7/+12
2017-04-25Support AddressSanitizer and ThreadSanitizer on x86_64-apple-darwin.kennytm-0/+4
ASan and TSan are supported on macOS, and this commit enables their support. The sanitizers are always built as *.dylib on Apple platforms, so they cannot be statically linked into the corresponding `rustc_?san.rlib`. The dylibs are directly copied to `lib/rustlib/x86_64-apple-darwin/lib/` instead. Note, although Xcode also ships with their own copies of ASan/TSan dylibs, we cannot use them due to version mismatch. There is a caveat: the sanitizer libraries are linked as @rpath, so the user needs to additionally pass `-C rpath`: rustc -Z sanitizer=address -C rpath file.rs ^~~~~~~~ Otherwise there will be a runtime error: dyld: Library not loaded: @rpath/libclang_rt.asan_osx_dynamic.dylib Referenced from: /path/to/executable Reason: image not found Abort trap: 6 The next commit includes a temporary change in compiler to force the linker to emit a usable @rpath.
2017-04-24Add cautions to io::get_mut method documentation.Sergio Benitez-0/+8
2017-04-24Reference tracking issue for more_io_inner_methods.Sergio Benitez-5/+5
2017-04-24Add internal accessor methods to io::{Chain, Take}.Sergio Benitez-0/+131
Resolves #29067.
2017-04-25Fix a copy-paste error in `Instant::sub_duration`Tobias Bucher-1/+1
Fixes #41514.
2017-04-23Auto merge of #41437 - cuviper:remove-unstable-deprecated, r=alexcrichtonbors-397/+1
Remove items that are unstable and deprecated This removes unstable items that have been deprecated for more than one cycle. - Since 1.16.0, `#![feature(enumset)]` - All of `mod collections::enum_set` - Since 1.15.0, `#![feature(borrow_state)]` - `cell::BorrowState` - `RefCell::borrow_state()` - Since 1.15.0, `#![feature(is_unique)]` - `Rc::is_unique()` (made private like `Arc::is_unique()`) - Since 1.15.0, `#![feature(rc_would_unwrap)]` - `Rc::would_wrap()` - Since 1.13.0, `#![feature(binary_heap_extras)]` - `BinaryHeap::push_pop()` - `BinaryHeap::replace()` - Since 1.12.0, `#![feature(as_unsafe_cell)]` - `Cell::as_unsafe_cell()` - `RefCell::as_unsafe_cell()` - Since 1.12.0, `#![feature(map_entry_recover_keys)]` - `btree_map::OccupiedEntry::remove_pair()` - `hash_map::OccupiedEntry::remove_pair()` - Since 1.11.0, `#![feature(float_extras)]` - `Float::nan()` - `Float::infinity()` - `Float::neg_infinity()` - `Float::neg_zero()` - `Float::zero()` - `Float::one()` - `Float::integer_decode()` - `f32::integer_decode()` - `f32::ldexp()` - `f32::frexp()` - `f32::next_after()` - `f64::integer_decode()` - `f64::ldexp()` - `f64::frexp()` - `f64::next_after()` - Since 1.11.0, `#![feature(zero_one)]` - `num::Zero` - `num::One`
2017-04-22Remove unused import.Corey Farwell-1/+1
2017-04-22Fix invalid linkageGuillaume Gomez-4/+4
2017-04-21Rollup merge of #41426 - malbarbo:android-x86_64, r=alexcrichtonCorey Farwell-0/+63
Add x86_64-linux-android target
2017-04-21Rollup merge of #41376 - mbrubeck:docs, r=frewsxcvCorey Farwell-2/+15
Expanded docs and examples for PathBuf::file_name and friends This addresses some common surprises when `PathBuf::set_file_name` is called on the path of a directory rather than a file. r? @steveklabnik
2017-04-21Specify behavior of `write_all` for `ErrorKind::Interrupted` errorsTobias Bucher-6/+16
Also spell out that read and write operations should be retried on `ErrorKind::Interrupted` errors. Fixes #38494.
2017-04-20Remove float_extrasJosh Stone-384/+0
[unstable, deprecated since 1.11.0]
2017-04-20Remove num::{Zero,One}Josh Stone-4/+0
[unstable, deprecated since 1.11.0]
2017-04-20Remove RefCell::borrow_stateJosh Stone-1/+0
[unstable, deprecated since 1.15.0]
2017-04-20Remove OccupiedEntry::remove_pairJosh Stone-7/+0
[unstable, deprecated since 1.12.0]
2017-04-20Add x86_64-linux-android targetMarco A L Barbosa-0/+63
2017-04-20Expanded docs and examples for PathBuf::file_name and friendsMatt Brubeck-2/+15
2017-04-20Rollup merge of #40812 - mgattozzi:ChildDocs, r=steveklabnikCorey Farwell-11/+9
Update `Child` docs to not have a note section In #29370 it's noted that for "the Note shouldn't be one, and should come before the examples." This commit changes the positioning of the section and removes wording that said take note in order for it to flow better with the surrounding text and it's new position.
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-19Fix link for waitMichael Gattozzi-1/+1
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