summary refs log tree commit diff
path: root/src/libstd
AgeCommit message (Collapse)AuthorLines
2015-12-02Auto merge of #30160 - adambadawy:fix_wait_with_output_typo, r=blussbors-1/+1
r? @steveklabnik
2015-12-01Fix typo in src/libstd/process.rsAdam Badawy-1/+1
2015-12-01Rollup merge of #30150 - steveklabnik:fix_exe_suffix, r=alexcrichtonSteve Klabnik-4/+6
2015-12-01Rollup merge of #30129 - tbu-:pr_doc_arrays_coerce, r=steveklabnikSteve Klabnik-6/+6
Fixes #29993.
2015-12-01Auto merge of #30129 - tbu-:pr_doc_arrays_coerce, r=steveklabnikbors-6/+6
Fixes #29993.
2015-12-01Small fix to EXE_SUFFIX and DLL_EXTENSION docsSteve Klabnik-4/+6
2015-12-01Auto merge of #30118 - alexcrichton:fix-time-again, r=aturonbors-1/+1
I believe that because Windows' unit of resolution is 100ns that this unit of time will ensure that the assertions will hold true as it's representable in the native format. cc #29970
2015-12-01Auto merge of #30057 - steveklabnik:doc_str, r=alexcrichtonbors-22/+42
Part of #29338
2015-12-01Arrays don't dereference but coerce to slicesTobias Bucher-6/+6
Fixes #29993.
2015-11-30Auto merge of #30080 - durka:patch-10, r=alexcrichtonbors-4/+4
Fixes #30073. The input to `cfg!` is a meta attribute, but not _any_ meta attribute (e.g. `cfg!(allow(dead_code))` doesn't compile). But the macro_rules syntax can't quite express this, so I added a note to the doc.
2015-11-30Better docs for the str primitiveSteve Klabnik-22/+42
Part of #29338
2015-11-30std: Bump time margin in std::time testsAlex Crichton-1/+1
I believe that because Windows' unit of resolution is 100ns that this unit of time will ensure that the assertions will hold true as it's representable in the native format. cc #29970
2015-11-29tweak cfg! doc commentAlex Burka-3/+3
2015-11-29Fix #30093Jack Fransham-1/+1
2015-11-28Auto merge of #30092 - semarie:to_socket_addr_str_bad, r=alexcrichtonbors-2/+2
I don't reproduce it on severals hosts (virtual or real), so I can't debug it. As Bitrig has disabled this test too, I will follow the same here. r? @alexcrichton
2015-11-28disable net::addr::to_socket_addr_str_bad test under openbsdSébastien Marie-2/+2
I don't reproduce it on severals hosts (virtual or real), so I can't debug it. As Bitrig has disabled this test too, I will follow the same here.
2015-11-26fix docs for compiler builtin macrosAlex Burka-3/+3
2015-11-26Auto merge of #30061 - tshepang:doc-time, r=brsonbors-13/+12
2015-11-26doc: this is already mentioned in previous paragraph, and is harder to readTshepang Lekhonkhobe-3/+2
2015-11-25doc: fix type nameTshepang Lekhonkhobe-1/+1
2015-11-25doc: add a pauseTshepang Lekhonkhobe-2/+3
2015-11-25doc: split overlong sentenceTshepang Lekhonkhobe-2/+2
2015-11-25doc: add missing commasTshepang Lekhonkhobe-2/+2
2015-11-25doc: fix grammarTshepang Lekhonkhobe-1/+1
2015-11-25doc: remove info repeated on next paragraphTshepang Lekhonkhobe-2/+1
2015-11-25Remove all uses of `#[staged_api]`Vadim Petrochenkov-1/+1
2015-11-25Auto merge of #30052 - Ryman:bind_docs, r=apasel422bors-1/+1
`socket_addr` was renamed to `local_addr` in 1.0beta. See: f798674b86382929ca17c88de422a6e2fdb27f2a r? @steveklabnik
2015-11-25Fix docs for TcpListener::bindKevin Butler-1/+1
`socket_addr` was renamed to `local_addr` in 1.0beta. See: f798674b86382929ca17c88de422a6e2fdb27f2a
2015-11-25Rollup merge of #30013 - steveklabnik:doc_char, r=brsonManish Goregaokar-11/+72
Part of https://github.com/rust-lang/rust/issues/29333
2015-11-24Auto merge of #30016 - alexcrichton:fix-off-by-one, r=brsonbors-14/+24
Typical algebra currently doesn't work on the types in std::time currently (see [this comment][comment]), so tweak the tests to account for this property. [comment]: https://github.com/rust-lang/rust/issues/29866#issuecomment-159093809 Closes #29970
2015-11-24Fix up docs for charSteve Klabnik-11/+72
Part of https://github.com/rust-lang/rust/issues/29333
2015-11-24Auto merge of #30006 - ntrepid8:skip-check-for-DYLD-libs-in-child-proc, ↵bors-0/+1
r=alexcrichton It seems that OS X El Capitan does not pass DYLD_* environment variables to child processes anymore. See this link: https://forums.developer.apple.com/thread/9233 The causes a test in `src/libstd/process.rs' to fail when those environment variables are not found in the child process. This PR skips those variables similar to how the Windows envars that start with `=` are skipped.
2015-11-23std: Tweak tests of std::timeAlex Crichton-14/+24
Typical algebra currently doesn't work on the types in std::time currently (see [this comment][comment]), so tweak the tests to account for this property. [comment]: https://github.com/rust-lang/rust/issues/29866#issuecomment-159093809 Closes #29970
2015-11-23Auto merge of #29952 - petrochenkov:depr, r=brsonbors-13/+16
Part of https://github.com/rust-lang/rust/issues/29935 The deprecation lint is still called "deprecated", so people can continue using `#[allow(deprecated)]` and similar things.
2015-11-23skip check for DYLD envars in child procJosh Austin-0/+1
2015-11-22test_inherit_env: Don't look for hidden environment variables on WindowsTobias Bucher-2/+4
Fixes #29972.
2015-11-21Auto merge of #29913 - tbu-:pr_windows_path_error_on_nul, r=alexcrichtonbors-30/+37
On Windows: Previously these paths were silently truncated at these NUL characters, now they fail with `ErrorKind::InvalidInput`.
2015-11-21Also check for NULs in environment variablesTobias Bucher-18/+20
This check is necessary, because the underlying API only reads strings until the first NUL.
2015-11-20Rename #[deprecated] to #[rustc_deprecated]Vadim Petrochenkov-13/+16
2015-11-20Auto merge of #29950 - fhahn:small-doc-fix-rename-var, r=blussbors-4/+4
This tiny PR renames the result variable in HashSet's `intersection` example from `diff` to `intersection` and the same for `union`, which seem more appropriate.
2015-11-20Rename result variable in HashSet's intersection and union examplesFlorian Hahn-4/+4
2015-11-19Auto merge of #29894 - alexcrichton:stdtime, r=brsonbors-102/+816
This commit is an implementation of [RFC 1288][rfc] which adds two new unstable types to the `std::time` module. The `Instant` type is used to represent measurements of a monotonically increasing clock suitable for measuring time withing a process for operations such as benchmarks or just the elapsed time to do something. An `Instant` favors panicking when bugs are found as the bugs are programmer errors rather than typical errors that can be encountered. [rfc]: https://github.com/rust-lang/rfcs/pull/1288 The `SystemTime` type is used to represent a system timestamp and is not monotonic. Very few guarantees are provided about this measurement of the system clock, but a fixed point in time (`UNIX_EPOCH`) is provided to learn about the relative distance from this point for any particular time stamp. This PR takes the same implementation strategy as the `time` crate on crates.io, namely: | Platform | Instant | SystemTime | |------------|--------------------------|--------------------------| | Windows | QueryPerformanceCounter | GetSystemTimeAsFileTime | | OSX | mach_absolute_time | gettimeofday | | Unix | CLOCK_MONOTONIC | CLOCK_REALTIME | These implementations can perhaps be refined over time, but they currently satisfy the requirements of the `Instant` and `SystemTime` types while also being portable across implementations and revisions of each platform. cc #29866
2015-11-19Error when paths contain NUL charactersTobias Bucher-19/+24
On Windows: Previously these paths were silently truncated at these NUL characters, now they fail with `ErrorKind::InvalidInput`.
2015-11-19Re-unignore environment test on MinGWTobias Bucher-1/+1
2015-11-19Ignore malformed environment variables on Windows tooTobias Bucher-15/+24
Leading equals symbols are treated as part of the variable name, if there is no other equality symbol or none at all, the environment string is ignored.
2015-11-19std: Add Instant and SystemTime to std::timeAlex Crichton-102/+816
This commit is an implementation of [RFC 1288][rfc] which adds two new unstable types to the `std::time` module. The `Instant` type is used to represent measurements of a monotonically increasing clock suitable for measuring time withing a process for operations such as benchmarks or just the elapsed time to do something. An `Instant` favors panicking when bugs are found as the bugs are programmer errors rather than typical errors that can be encountered. [rfc]: https://github.com/rust-lang/rfcs/pull/1288 The `SystemTime` type is used to represent a system timestamp and is not monotonic. Very few guarantees are provided about this measurement of the system clock, but a fixed point in time (`UNIX_EPOCH`) is provided to learn about the relative distance from this point for any particular time stamp. This PR takes the same implementation strategy as the `time` crate on crates.io, namely: | Platform | Instant | SystemTime | |------------|--------------------------|--------------------------| | Windows | QueryPerformanceCounter | GetSystemTimeAsFileTime | | OSX | mach_absolute_time | gettimeofday | | Unix | CLOCK_MONOTONIC | CLOCK_REALTIME | These implementations can perhaps be refined over time, but they currently satisfy the requirements of the `Instant` and `SystemTime` types while also being portable across implementations and revisions of each platform.
2015-11-18Auto merge of #29083 - petrochenkov:stability3, r=alexcrichtonbors-23/+211
What this patch does: - Stability annotations are now based on "exported items" supplied by rustc_privacy and not "public items". Exported items are as accessible for external crates as directly public items and should be annotated with stability attributes. - Trait impls require annotations now. - Reexports require annotations now. - Crates themselves didn't require annotations, now they do. - Exported macros are annotated now, but these annotations are not used yet. - Some useless annotations are detected and result in errors - Finally, some small bugs are fixed - deprecation propagates from stable deprecated parents, items in blocks are traversed correctly (fixes https://github.com/rust-lang/rust/issues/29034) + some code cleanup.
2015-11-18Fix buildbot failuresVadim Petrochenkov-9/+23
2015-11-18Auto merge of #29897 - alexcrichton:process-wait-with-output, r=brsonbors-20/+14
Previously this function used channels but this isn't necessary any more now that threads have return values. This also has the added bonus of appropriately waiting for the thread to exit to ensure that the function doesn't still have running threads once it returns.
2015-11-18Add missing annotations and some testsVadim Petrochenkov-14/+188