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
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