bors
929b878262
Auto merge of #44438 - Xaeroxe:clamp, r=Mark-Simulacrum
...
Revert clamp
Revert clamp per https://github.com/rust-lang/rust/issues/44095#issuecomment-328218316 while we take time to assess the potential backwards compatibility damage done by it.
2017-09-09 09:13:03 +00:00
J. Cliff Dyer
8b6122f8b8
Add feature gate to doctests.
2017-09-08 20:41:09 -04:00
Jacob Kiesel
db5b5f9706
Revert "Add clamp functions"
...
This reverts commit c589f867f8 .
2017-09-08 16:07:21 -06:00
Jacob Kiesel
63f4dab0f5
Revert "Add NAN examples"
...
This reverts commit f74c5d2e18 .
2017-09-08 16:07:19 -06:00
Jacob Kiesel
eafdad511f
Revert "Fix f32 examples."
...
This reverts commit 61f20f8df0 .
2017-09-08 16:07:17 -06:00
Jacob Kiesel
15d3eeaf65
Revert "Fix f64 examples"
...
This reverts commit 576426a05a .
2017-09-08 16:07:15 -06:00
Jacob Kiesel
8b96167004
Revert "Fix documentation and formatting."
...
This reverts commit 2e34ff7671 .
2017-09-08 16:07:13 -06:00
Jacob Kiesel
67283fa8e6
Revert "Add panic unit tests"
...
This reverts commit b762283e57 .
2017-09-08 16:07:09 -06:00
Romain Porte
4db499ff10
Add Duration::from_micros
2017-09-08 23:02:56 +02:00
Sebastian Humenda
40794bf4b8
Move the stack size value for L4Re to the min_stack_size function
2017-09-08 14:36:56 +02:00
Sebastian Humenda
0b77464d22
Re-enable networking module fo rL4Re
...
As suggested in the discussion of PR #43972 , std should provide a uniform API to
all platforms. Since there's no networking on L4Re, this now is a module in
`sys::net` providing types and functions/methods returning an error for each
action.
2017-09-08 14:36:56 +02:00
Tobias Schaffner
9bbc6dbde3
Add modifications needed for L4re in libstd
...
This commit adds the needed modifications to compile the std crate
for the L4 Runtime environment (L4Re).
A target for the L4Re was introduced in commit:
c151220a84
In many aspects implementations for linux also apply for the L4Re
microkernel.
Two uncommon characteristics had to be resolved:
* L4Re has no network funktionality
* L4Re has a maximum stacksize of 1Mb for threads
Co-authored-by: Sebastian Humenda <sebastian.humenda@tu-dresden.de>
2017-09-08 14:36:56 +02:00
Sebastian Humenda
2cf0a4ad46
Match c_char definitions and enable signal reset for L4Re
...
* Match definition of c_char in os/raw.rs with the libc definition
Due to historic reasons, os/raw.rs redefines types for c_char from
libc, but these didn't match. Now they do :).
* Enable signal reset on exec for L4Re
L4Re has full signal emulation and hence it needs to reset the
signal set of the child with sigemptyset. However, gid and uid
should *not* be set.
2017-09-08 14:36:56 +02:00
J. Cliff Dyer
ad170f2339
Close doc examples and trim whitespace.
2017-09-07 19:06:57 -04:00
Joshua Liebow-Feeser
ddb072b8d7
std: 🧵 :LocalKey: Document limitation with initializers
2017-09-07 12:57:08 -07:00
J. Cliff Dyer
c22db3db6d
IP address convenience constructors
2017-09-07 14:08:58 -04:00
Tobias Bucher
b4d0f61771
Clarify the behavior of UDP sockets wrt. multiple addresses in connect
2017-09-07 11:26:23 +02:00
kennytm
83d14bda7f
Disable the 80-year-difference test on 32-bit-time_t platforms.
2017-09-07 17:14:27 +08:00
kennytm
756026563d
Fix incorrect test in time::tests::system_time_math.
2017-09-07 17:14:27 +08:00
kennytm
8410ca6632
Properly detect overflow in Instance +/- Duration.
...
Avoid unchecked cast from `u64` to `i64`. Use `try_into()` for checked
cast. (On Unix, cast to `time_t` instead of `i64`.)
2017-09-07 17:14:27 +08:00
bors
d7d75eff30
Auto merge of #43931 - eddyb:const-local-key, r=alexcrichton
...
Make the LocalKey facade of thread_local! inlineable cross-crate.
Fixes (almost*) #25088 by changing the `LocalKey` `static` `thread_local!` generates to a `const`.
This can be done because a `LocalKey` value holds no actual TLS data, only function pointers to get at said data, and it could even be made `Copy` without any negative consequences.
The recent stabilization of rvalue promotion to `'static` allows doing this without changing the API.
r? @alexcrichton
*almost because we can't yet inline `__getit` because it breaks on MSVC, see https://github.com/rust-lang/rust/pull/43931#issuecomment-323534214
2017-09-07 06:52:05 +00:00
Alex Crichton
f633284b3d
std: Fix a segfault on OSX with backtraces
...
Apparently `dladdr` can succeed but still give you NULL pointers!
Closes #44379
2017-09-06 22:14:34 -07:00
Mark Simulacrum
fdb8d0beb4
Rollup merge of #44315 - kallisti5:epoch-doc-example-squashed, r=GuillaumeGomez
...
std/time: Give an example to get UNIX_EPOCH in seconds
2017-09-06 18:27:53 -06:00
Mark Simulacrum
44351edb64
Rollup merge of #44097 - Xaeroxe:clamp, r=burntsushi
...
Add clamp functions
Implementation of clamp feature:
Tracking issue: https://github.com/rust-lang/rust/issues/44095
RFC: https://github.com/rust-lang/rfcs/pull/1961
2017-09-06 18:27:45 -06:00
Joshua Sheard
8e80cee144
Implement named threads on Windows
2017-09-06 20:40:34 +01:00
QuietMisdreavus
bb6de3c9ce
add feature gate doc_masked and tests
2017-09-05 13:51:08 -05:00
QuietMisdreavus
c491e195c4
new attribute #[doc(masked)] to hide internal crates from std docs
2017-09-05 13:50:37 -05:00
Jon Gjengset
00bdae02fd
Avoid weird or_insert_with example
2017-09-05 13:37:36 -04:00
Jon Gjengset
35c7943fd2
Add or_default to Entry APIs
2017-09-05 13:11:38 -04:00
Jacob Kiesel
b762283e57
Add panic unit tests
2017-09-04 21:39:46 -06:00
Alexander von Gluck IV
1c5bf2468b
std/time: Give an example to get UNIX_EPOCH in seconds
2017-09-04 19:21:58 -05:00
Eduard-Mihai Burtescu
4e2be14986
Make the LocalKey facade of thread_local! inlineable cross-crate.
2017-09-04 08:24:06 +03:00
Jeroen Bollen
a312b47698
Marked Entry::replace as unstable.
2017-09-03 20:16:20 +02:00
Jeroen Bollen
e9f01bcf68
Added a way to retrieve the key out of a HashMap when it's being replaced.
2017-09-03 00:19:56 +02:00
Ralf Jung
12d84cc009
update gcc crate
...
Use gcc::Build rather than deprecated gcc::Config.
Fixes #43973
2017-09-02 21:51:18 +02:00
kennytm
7169fe57d6
Fallback to dladdr-based resolve_symbol if backtrace failed.
...
This programs compiled without -g on macOS still provide the resolve to
actual symbols, instead of `<unknown>` everywhere.
2017-09-02 03:24:17 +08:00
John Colanduoni
09f572b7dc
Use env::current_exe for libbacktrace on macOS
2017-09-02 03:24:17 +08:00
John Colanduoni
e8121b3d16
Add libbacktrace support for Apple platforms
2017-09-02 03:24:15 +08:00
bors
f861b6ee46
Auto merge of #44154 - alexcrichton:bump-bootstrap, r=Mark-Simulacrum
...
Bump to 1.22.0 and update boostrap compiler
Time to get a new nightly!
2017-09-01 16:39:31 +00:00
bors
ed532c0d93
Auto merge of #44238 - nrc:pulldown-warn, r=@QuietMisdreavus
...
Improve the Pulldown/hoedown warnings
cc #44229
r? @QuietMisdreavus
2017-09-01 13:56:22 +00:00
Nick Cameron
1d6d09fa6d
Fix tests
...
This is just undoing changes from #41991 because we are not running markdown rendering twice.
2017-09-01 20:07:04 +12:00
Jacob Kiesel
2e34ff7671
Fix documentation and formatting.
2017-09-01 00:07:26 -06:00
Alex Crichton
9e5a7e9472
Bring back stage0 allocator logic on MSVC
...
I think there may still be bugs preventing its removal..
2017-08-31 18:20:52 -07:00
Mark Simulacrum
3cd4ea3bfa
Rollup merge of #44209 - frewsxcv:frewsxcv-addr-other-scenarios, r=alexcrichton
...
Expand docs of multi-address behavior of some UDP/TCP APIs.
Fixes https://github.com/rust-lang/rust/issues/22569 .
2017-08-31 18:07:46 -06:00
Mark Simulacrum
471f9894c9
Rollup merge of #44205 - frewsxcv:frewsxcv-addr-doc-fix, r=QuietMisdreavus
...
Fix typo in doc `ToSocketAddrs` example.
None
2017-08-31 18:07:44 -06:00
Corey Farwell
0a716fdce2
Expand docs of multi-address behavior of some UDP/TCP APIs.
...
Fixes https://github.com/rust-lang/rust/issues/22569 .
2017-08-31 11:24:34 -04:00
Alex Crichton
7a2a8d7d60
Update Cargo to 0.23.0 and our lockfile
2017-08-31 07:02:50 -07:00
Alex Crichton
9b9de27101
Bump to 1.22.0
2017-08-31 06:58:58 -07:00
Alex Crichton
2972687d10
Update bootstrap compiler
...
This commit updates the bootstrap compiler and clears out a number
of #[cfg(stage0)] annotations and related business
2017-08-31 06:58:58 -07:00
bors
97b01abf3d
Auto merge of #41991 - GuillaumeGomez:rustdoc-html-diff, r=nrc
...
Add warnings when rustdoc html rendering differs
2017-08-31 08:52:03 +00:00