summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2016-11-15Add set_permJeremy Soller-4/+7
2016-11-14Simple implementation of read2Jeremy Soller-10/+13
2016-11-14Add current_exe supportJeremy Soller-2/+12
2016-11-14Fix redox prefix handlingJeremy Soller-3/+18
2016-11-14Update top-level path doc examples to show results.Corey Farwell-5/+18
2016-11-14Add fcntlJeremy Soller-5/+11
2016-11-13Minor rewriting of `std::path::Path::push` doc example.Corey Farwell-5/+12
2016-11-12Rollup merge of #37699 - alexcrichton:default-for-duration, r=brsonEduard-Mihai Burtescu-1/+1
std: Derive `Default` for `Duration`. Discussed in #37546 the libs team reached the conclusion that a default zero duration seems like a reasonable implementation of the `Default` trait. Closes #37546
2016-11-12Rollup merge of #37696 - arthurprs:patch-1, r=alexcrichtonEduard-Mihai Burtescu-1/+4
Remove one bounds check from BufReader Very minor thing. Otherwise the optimizer can't be sure that pos <= cap. Added a paranoid debug_assert to ensure correctness instead. CC #37573
2016-11-12Rollup merge of #37527 - Mark-Simulacrum:mpsc-recvtimeouterror-error-impl, ↵Eduard-Mihai Burtescu-0/+32
r=alexcrichton Add Error implementation for std::sync::mpsc::RecvTimeoutError. Fixes https://github.com/rust-lang/rust/issues/37525.
2016-11-10Merge branch 'master' into redoxJeremy Soller-67/+120
2016-11-10Use target_os = redox for cfgJeremy Soller-8/+5
2016-11-10Fix readdirJeremy Soller-7/+11
2016-11-10Fixes for stdio and processes on RedoxJeremy Soller-4/+35
2016-11-10std: Derive `Default` for `Duration`.Alex Crichton-1/+1
Discussed in #37546 the libs team reached the conclusion that a default zero duration seems like a reasonable implementation of the `Default` trait. Closes #37546
2016-11-10Remove one bounds check from BufReaderArthur Silva-1/+4
Otherwise the optimizer can't be sure that pos <= cap. Added a paranoid debug_assert to ensure correctness instead.
2016-11-09Fix execJeremy Soller-56/+10
2016-11-10doc: fix typosTshepang Lekhonkhobe-2/+2
2016-11-09Rollup merge of #37622 - ollie27:cstring, r=alexcrichtonEduard-Mihai Burtescu-1/+1
Slightly optimise CString Avoid a reallocation in CString::from and CStr::to_owned.
2016-11-09Rollup merge of #37432 - achanda:send_to, r=alexcrichtonEduard-Mihai Burtescu-0/+3
Clarify that send_to might panic in certain cases Closes #34202 r? @alexcrichton
2016-11-09Clarify that send_to might return an error in certain casesAbhishek Chanda-0/+3
Closes #34202
2016-11-08Rollup merge of #37588 - GuillaumeGomez:missing_io_urls, r=frewsxcvSteve Klabnik-11/+19
Add missing urls on io structs r? @steveklabnik
2016-11-08Slightly optimise CStringOliver Middleton-1/+1
Avoid a reallocation in CString::from and CStr::to_owned.
2016-11-08Auto merge of #36843 - petrochenkov:dotstab, r=nikomatsakisbors-1/+1
Stabilize `..` in tuple (struct) patterns I'd like to nominate `..` in tuple and tuple struct patterns for stabilization. This feature is a relatively small extension to existing stable functionality and doesn't have known blockers. The feature first appeared in Rust 1.10 6 months ago. An example of use: https://github.com/rust-lang/rust/pull/36203 Closes https://github.com/rust-lang/rust/issues/33627 r? @nikomatsakis
2016-11-05Rollup merge of #37589 - raphlinus:fuchsia_random, r=alexcrichtonAlex Crichton-8/+20
std: Track change to cprng syscall signature (Fuchsia) The mx_cprng_draw syscall has changed signature to separate the status and size return values, rather than multiplexing them into a single value with errors interpreted as a negative value. This patch tracks that change.
2016-11-05Rollup merge of #37585 - leodasvacas:change_into_to_from, r=alexcrichtonAlex Crichton-7/+7
Change `Into<Vec<u8>> for String` and `Into<OsString> for PathBuf` to From Fixes #37561. First contribution, happy with any and all feedback!
2016-11-05Rollup merge of #37537 - GuillaumeGomez:error_kind_doc, r=steveklabnikAlex Crichton-2/+7
Add missing urls for ErrorKind's variants r? @steveklabnik
2016-11-05Rollup merge of #37470 - arthurprs:sip-smaller, r=alexcrichtonAlex Crichton-14/+12
Don't reuse RandomState seeds cc #36481
2016-11-05add missing urls on io structsGuillaume Gomez-11/+19
2016-11-04std: Track change to cprng syscall signature (Fuchsia)Raph Levien-8/+20
The mx_cprng_draw syscall has changed signature to separate the status and size return values, rather than multiplexing them into a single value with errors interpreted as a negative value. This patch tracks that change.
2016-11-04Change Into<Vec<u8>> for String and Into<OsString> for PathBuf to From implsleonardo.yvens-7/+7
2016-11-04Auto merge of #37037 - Mark-Simulacrum:stack-error, r=alexcrichtonbors-21/+48
Add conversions from `io:ErrorKind` to `io::Error` Filing to help with discussion around the possibility of doing this. Current changes are clearly backwards incompatible, but I think adding a new function (with a bikeshed on naming) like `Error::new_str` should be possible (or some other way of specializing the string error message case) to fix #36658.
2016-11-03Update to new sys requirementsJeremy Soller-0/+123
2016-11-03Merge branch 'master' into redoxJeremy Soller-338/+452
2016-11-03Stabilize `..` in tuple (struct) patternsVadim Petrochenkov-1/+1
2016-11-02Rollup merge of #37498 - sanxiyn:unused-type-alias, r=eddybJonathan Turner-4/+0
Remove unused type aliases Found by extending the dead code lint. The lint itself is work in progress because of false positives. cc #37455.
2016-11-02Add missing urls for ErrorKind's variantsGuillaume Gomez-2/+7
2016-11-02Auto merge of #36948 - brson:sys, r=brsonbors-290/+348
More refactoring to obey platform abstraction lint The most interesting things here are moving `std/sys/common` to `std/sys_common`, and `std/num/{f32,f64}.rs` to `std/{f32,f64}.rs`, and adding more documentation to `std/lib.rs`. r? @alexcrichton
2016-11-02Add a new non-heap allocated variant to io::Error's representation.Mark-Simulacrum-21/+48
Implement From<ErrorKind> for io::Error, intended for use with errors that should never be exposed to the user.
2016-11-02Add Error implementation for std::sync::mpsc::RecvTimeoutError.Mark-Simulacrum-0/+32
2016-11-01std: Flatten the num directory to reflect the module layoutBrian Anderson-2/+2
This makes it dissimilar to how core is structured on disk, but more predictable on its own.
2016-11-01Clean up and add more comments to libstd/lib.rsBrian Anderson-79/+70
2016-11-01std: Remove unused test featureBrian Anderson-1/+0
2016-11-01Document sys_common and sysBrian Anderson-0/+36
2016-11-01std: Move sys_common to libstd/sys_commonBrian Anderson-2/+1
Make the directory structure reflect the module structure. I've always found the existing structure confusing.
2016-11-01std: Move platform-specific out of sys_common::utilBrian Anderson-27/+26
2016-11-01std: Move platform-specific code out of libstd/lib.rsBrian Anderson-7/+23
2016-11-01std: Move a plattform-specific constant to sys::stdioBrian Anderson-10/+10
2016-11-01Document reasoning for supporting both fast and OS TLS in the same binBrian Anderson-0/+9
2016-11-01std: Move elf TLS to sys::fast_thread_localBrian Anderson-162/+171