Clar Charr
778d5f2074
Add Cow<str> -> Box<Error> impls.
2017-09-10 13:21:34 -04:00
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
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
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
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
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
Ralf Jung
12d84cc009
update gcc crate
...
Use gcc::Build rather than deprecated gcc::Config.
Fixes #43973
2017-09-02 21:51:18 +02: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
Corey Farwell
396fc111e1
Fix typo in doc ToSocketAddrs example.
2017-08-30 22:03:03 -04:00
Alex Crichton
c0812c8458
Rollup merge of #44160 - AndyGauge:api-docs-macros, r=steveklabnik
...
API docs: macros. Standard Documentation Checklist
Fixes #29381
r? @steveklabnik
2017-08-30 13:17:05 -07:00
Alex Crichton
bc6981ba55
Rollup merge of #44116 - alexcrichton:update-libc, r=Mark-Simulacrum
...
Update the libc submodule
Brings in a few fixes for wasm/asmjs
2017-08-30 11:11:11 -05:00
Guillaume Gomez
bba7fd9dd5
Temporary fix for a test (will require another update when this is fully merged)
2017-08-30 09:40:43 +02:00
Andy Gauge
80d513aaec
broken links resolved
2017-08-29 16:39:11 -07:00
Ariel Ben-Yehuda
30907e1a27
Rollup merge of #44117 - frewsxcv:frewsxcv-to-socket-addrs-examples, r=QuietMisdreavus
...
Rewrite `std::net::ToSocketAddrs` doc examples.
in particular:
* show how to create an iterator that yields multiple socket addresses
* show more failing scenarios
done this as preliminary work while investigating https://github.com/rust-lang/rust/issues/22569
note: i haven't run doc tests on my machine for this, so would be good to confirm CI passes before approving
2017-08-29 21:40:57 +00:00
Andrew Gauger
84c5441e70
fix test failures in documentation change
2017-08-29 12:53:12 -07:00
Andy Gauge
b9b654924e
API docs: macros. Part of #29329 Standard Library Documentation Checklist.
2017-08-29 10:30:19 -07:00
Alex Crichton
e5b123cba2
Update the libc submodule
...
Brings in a few fixes for wasm/asmjs
2017-08-28 07:58:19 -07:00
Corey Farwell
10bd39e7af
Rewrite std::net::ToSocketAddrs doc examples.
...
in particular:
* show how to create an iterator that yields multiple socket addresses
* show more failing scenarios
2017-08-28 09:23:06 -04:00
Tatsuyuki Ishi
bf9bdefe8a
Whitelist unwind import in std
...
This is a part of libbacktrace linkage and thus the compiler cannot detect if it's used or not.
2017-08-27 19:02:24 +09:00
Tatsuyuki Ishi
611b111139
Move unused-extern-crate to late pass
2017-08-27 19:02:24 +09:00
bors
93cdf5e3c4
Auto merge of #44112 - alexcrichton:thread-join, r=sfackler
...
std: Handle OS errors when joining threads
Also add to the documentation that the `join` method can panic.
cc #34971
cc #43539
2017-08-27 04:20:28 +00:00
Alex Crichton
dc7c7ba0c9
std: Handle OS errors when joining threads
...
Also add to the documentation that the `join` method can panic.
cc #34971
cc #43539
2017-08-26 19:36:46 -07:00
Jacob Kiesel
576426a05a
Fix f64 examples
2017-08-26 17:54:51 -06:00
Jacob Kiesel
61f20f8df0
Fix f32 examples.
2017-08-26 17:53:01 -06:00
Jacob Kiesel
f74c5d2e18
Add NAN examples
2017-08-26 10:36:14 -06:00
Jacob Kiesel
c589f867f8
Add clamp functions
2017-08-26 10:21:17 -06:00
Corey Farwell
7e8753d1c1
Rollup merge of #44072 - lukaramu:fix-doc-headings, r=steveklabnik
...
Fix inconsistent doc headings
This fixes headings reading "Unsafety" and "Example", they should be "Safety" and "Examples" according to RFC 1574.
r? @steveklabnik
2017-08-26 06:46:34 -07:00
Tamir Duberstein
b3f50caee0
*: remove crate_{name,type} attributes
...
Fixes #41701 .
2017-08-25 16:18:21 -04:00
lukaramu
49ee9f3f08
Fix inconsistent doc headings
...
This fixes headings reading "Unsafety" and "Example", they should be
"Safety" and "Examples" according to RFC 1574.
2017-08-24 18:42:53 +02:00
Corey Farwell
96efcdf065
Rollup merge of #44054 - frewsxcv:frewsxcv-libstd-thread-unwrap-or-else, r=sfackler
...
Thread spawning: don't run `min_stack` if the user has specified stack size.
None
2017-08-23 08:44:30 -04:00
Corey Farwell
4d83634faf
Rollup merge of #44039 - remexre:master, r=steveklabnik
...
Mention null_mut on the pointer primitive docs.
Also adds a few mentions that both `*const` and `*mut` support functions, when only `*const` was mentioned before.
2017-08-23 08:44:27 -04:00