Guillaume Gomez
292d36febd
Add missing doc examples for Builder
2016-12-24 10:37:04 +01:00
Alex Crichton
214a6c6166
Fix compile errors and such
2016-12-20 14:09:50 -08:00
Alex Crichton
60842c1c1f
Rollup merge of #38451 - semarie:openbsd-rustbuild, r=alexcrichton
...
adaptation to rustbuild for openbsd
Since the switch to rustbuild, the build for openbsd is broken:
- [X] `ar` inference based on compiler name is wrong (OpenBSD usually use `egcc`, but `ear` doesn't exist)
- [X] `make` isn't GNU-make under OpenBSD (and others BSD platforms)
- [x] `stdc++` isn't the right stdc++ library to link with (it should be `estdc++`)
- [x] corrects tests that don't pass anymore (problems related to rustbuild)
r? @alexcrichton
2016-12-20 12:59:07 -08:00
Alex Crichton
adfafffce8
Rollup merge of #38346 - GuillaumeGomez:duration_doc, r=frewsxcv
...
Duration doc
r? @frewsxcv
2016-12-20 12:59:03 -08:00
Alex Crichton
4cfb2b48fe
Rollup merge of #38236 - GuillaumeGomez:unix_socket_doc, r=frewsxcv
...
Unix socket doc
r? @frewsxcv
2016-12-20 11:16:26 -08:00
Alex Crichton
65e9691cef
Rollup merge of #38131 - clarcharr:from_segments, r=alexcrichton
...
Add From<[u16; 8]> to Ipv6Addr
Not really sure that this requires an RFC, but I figured that I'd offer a pull request and see what people think. It seems like a reasonable addition.
2016-12-20 11:16:19 -08:00
Alex Crichton
68dd6fd964
Rollup merge of #38006 - frewsxcv:libstd-debug, r=alexcrichton
...
Implement `fmt::Debug` for all structures in libstd.
Part of https://github.com/rust-lang/rust/issues/31869 .
Also turn on the `missing_debug_implementations` lint at the crate
level.
2016-12-20 11:16:17 -08:00
Seo Sanghyeon
49cd809e7a
Rollup merge of #38433 - GuillaumeGomez:thread_docs, r=frewsxcv
...
Thread docs
r? @frewscvx
2016-12-19 16:59:41 +09:00
Seo Sanghyeon
4b5cffc04b
Rollup merge of #38421 - apasel422:issue-36934, r=alexcrichton
...
Replace invalid use of `&mut` with `UnsafeCell` in `std::sync::mpsc`
Closes #36934
r? @alexcrichton
2016-12-19 16:59:38 +09:00
Seo Sanghyeon
0c4e1db935
Rollup merge of #38397 - frewsxcv:platform-specific-process-exit, r=alexcrichton
...
Document platform-specific differences for `std::process::exit`.
Fixes https://github.com/rust-lang/rust/issues/35046 .
2016-12-19 16:59:36 +09:00
Clar Charr
5049ad22ec
From<[u16; 8]> for Ipv6Addr.
2016-12-18 23:09:48 -05:00
Corey Farwell
86fc63e62d
Implement fmt::Debug for all structures in libstd.
...
Part of https://github.com/rust-lang/rust/issues/31869 .
Also turn on the `missing_debug_implementations` lint at the crate
level.
2016-12-18 14:55:14 -08:00
bors
71c06a56a1
Auto merge of #38051 - sanxiyn:unused-type-alias-3, r=eddyb
...
Warn unused type aliases, reimplemented
Reimplementation of #37631 . Fix #37455 .
2016-12-18 22:06:34 +00:00
Corey Farwell
4d392d355e
Document platform-specific differences for std::process::exit.
...
Fixes https://github.com/rust-lang/rust/issues/35046 .
2016-12-18 09:47:22 -08:00
Seo Sanghyeon
5a1b62c0fd
Fix Windows
2016-12-18 22:19:57 +09:00
Guillaume Gomez
79e8a70b62
Add missing urls for thread doc module
2016-12-18 11:36:13 +01:00
Sébastien Marie
a7d9025e40
let BSD to use gmake for GNU-make
...
the diff extends build_helper to provide an function to return the
expected name of GNU-make on the host: "make" or "gmake".
Fixes #38429
2016-12-17 20:09:23 +01:00
Aaron Turon
9a5cef4de5
Address fallout
2016-12-16 19:42:17 -08:00
Andrew Paseltiner
26d4308c6a
Replace invalid use of &mut with UnsafeCell in std::sync::mpsc
...
Closes #36934
2016-12-16 19:52:12 -05:00
Guillaume Gomez
2938e6a411
Add missing doc examples for UnixDatagram
2016-12-16 11:14:16 +01:00
Aaron Turon
fce6af2a67
Stabilize std::io::Take::into_inner
2016-12-15 10:56:56 -08:00
Aaron Turon
65b144c964
Stabilize std::os::unix::process::CommandExt::before_exec
2016-12-15 10:56:55 -08:00
Aaron Turon
9e8fd24383
Stabilize std::sync::mpsc::Receiver::try_iter
2016-12-15 10:56:55 -08:00
Aaron Turon
df26a5a958
Stabilize std::os::*::fs::FileExt
2016-12-15 10:56:55 -08:00
Jeremy Soller
3e15dc108c
Merge branch 'master' into redox
2016-12-14 10:20:12 -07:00
Guillaume Gomez
60fbe7a5e3
Add missing Duration examples
2016-12-14 11:05:45 +01:00
Jeremy Soller
daaa231876
Fix tidy checks
2016-12-12 15:57:19 -07:00
Jeremy Soller
7e7775ce7b
Merge branch 'master' into redox
2016-12-12 14:55:09 -07:00
Jeremy Soller
c61baa0fc7
Fix accidental removal of import
2016-12-12 14:30:41 -07:00
Jeremy Soller
056ebccee3
Rollback prefix
2016-12-12 14:21:44 -07:00
Corey Farwell
3bd2c80382
Rollup merge of #38067 - GuillaumeGomez:udp-doc, r=frewsxcv,nagisa
...
Add more examples to UpdSocket
r? @frewsxcv
2016-12-12 14:10:32 -05:00
Corey Farwell
8c3c9c2979
Rollup merge of #37941 - Cobrand:docfix-issue-37915, r=GuillaumeGomez
...
Improve and fix mpsc documentation
Closes #37915
This commit enhances documentation with several links and
fixes an error in the `sync_channel` documentation as well:
`send` doesn't panic when the senders are all disconnected
r? @steveklabnik
2016-12-12 14:10:32 -05:00
bors
b4b1e5ece2
Auto merge of #38049 - frewsxcv:libunicode, r=alexcrichton
...
Rename 'librustc_unicode' crate to 'libstd_unicode'.
Fixes https://github.com/rust-lang/rust/issues/26554 .
2016-12-12 13:19:33 +00:00
bors
51d29343c0
Auto merge of #38197 - mneumann:dragonfly-fixes-2016-12-06, r=alexcrichton
...
Fix current_exe() on DragonFly (again)
This is a follow up on [this pull request][1].
Since DragonFly 4.6.1 ([this commit][2]), the ```kern.proc.pathname```
sysctl works correctly, i.e. it does not return paths including a ```:```
(see [here][3]). Use it and don't try to fix old versions of DragonFly!
There are not many DragonFly installations out there that we can't
control and no one is compiling Rust from source. If someone wants to
run Rust on a pre-4.6.1 DragonFly system, the ports system should
provide a patch.
[1]: https://github.com/rust-lang/rust/pull/35494
[2]: https://gitweb.dragonflybsd.org/dragonfly.git/commit/726f7ca07e193db73635e9c4e24e40c96087d6d9
[3]: https://gist.github.com/mneumann/a2f6b6a0a03935b561d6185872a4b222
2016-12-09 15:45:41 +00:00
Guillaume Gomez
a78a33c52a
Add Incoming doc examples
2016-12-08 09:43:38 -08:00
Guillaume Gomez
c35b9f6703
Add UnixListener doc examples
2016-12-08 09:43:38 -08:00
Guillaume Gomez
7fe17f96d5
Add doc examples for UnixStream
2016-12-08 09:43:33 -08:00
Guillaume Gomez
9976f5f7c5
Add missing doc examples for SocketAddr struct
2016-12-08 09:38:43 -08:00
bors
816a34aca2
Auto merge of #38146 - kali:master, r=alexcrichton
...
fix objc ABI in std::env::args
iOS use different calling convention for `objc_msgSend` depending on the platform. armv7 expect good old variadic arguments, but aarch64 wants "normal" convention: `objc_msgSend` has to be called mimicking the actual callee prototype.
https://developer.apple.com/library/content/documentation/General/Conceptual/CocoaTouch64BitGuide/ConvertingYourAppto64-Bit/ConvertingYourAppto64-Bit.html#//apple_ref/doc/uid/TP40013501-CH3-SW26
This currently breaks std::env:args() on aarch64 iOS devices. As far as I can tell, in the standard library, this is the only occurrence of ObjectiveC dispatching.
2016-12-08 07:05:19 +00:00
Guillaume Gomez
ccbeb6d6ab
Rollup merge of #38186 - frewsxcv:default, r=GuillaumeGomez
...
Add docs for last undocumented `Default` `impl`.
Add doc comment for `Default` `impl` on `DefaultHasher`.
Fixes https://github.com/rust-lang/rust/issues/36265 .
2016-12-07 10:42:52 -08:00
Guillaume Gomez
073351c3c3
Rollup merge of #38153 - GuillaumeGomez:typo, r=bluss
...
Fix small typo
2016-12-07 10:42:51 -08:00
Guillaume Gomez
99d9be903c
Rollup merge of #38151 - GuillaumeGomez:exit-examples, r=frewsxcv
...
Add examples for exit function
r? @frewsxcv
2016-12-07 10:42:51 -08:00
Guillaume Gomez
ff8faedf0c
Rollup merge of #38123 - GuillaumeGomez:panic_doc, r=frewsxcv
...
Add missing examples for panicking objects
r? @frewsxcv
2016-12-07 10:42:51 -08:00
Cobrand
57f998a460
Improve and fix mpsc documentation
...
Closes #37915
This commit enhances documentation with several links and
fixes an error in the `sync_channel` documentation as well:
`send` doesn't panic when the senders are all disconnected
2016-12-07 18:57:01 +01:00
bors
5938eba4e3
Auto merge of #38149 - bluss:is-empty, r=alexcrichton
...
Forward more ExactSizeIterator methods and `is_empty` edits
- Forward ExactSizeIterator methods in more places, like `&mut I` and `Box<I>` iterator impls.
- Improve `VecDeque::is_empty` itself (see commit 4)
- All the collections iterators now have `len` or `is_empty` forwarded if doing so is a benefit. In the remaining cases, they already use a simple size hint (using something like a stored `usize` value), which is sufficient for the default implementation of len and is_empty.
2016-12-07 07:15:31 +00:00
Corey Farwell
3cd98685e4
Add doc comment for Default impl on DefaultHasher.
2016-12-06 14:45:04 -10:00
bors
5f128ed10f
Auto merge of #38017 - arthurprs:hm-extend, r=bluss
...
Smarter HashMap/HashSet pre-allocation for extend/from_iter
HashMap/HashSet from_iter and extend are making totally different assumptions.
A more balanced decision may allocate half the lower hint (rounding up). For "well defined" iterators this effectively limits the worst case to two resizes (the initial reserve + one resize).
cc #36579
cc @bluss
2016-12-06 21:05:31 +00:00
Michael Neumann
dfd3b908f5
Fix current_exe() on DragonFly (again)
...
This is a follow up on [this pull request][1].
Since DragonFly 4.6.1 ([this commit][2]), the "kern.proc.pathname"
sysctl works correctly, i.e. it does not return paths including a ":"
(see [here][3]). Use it and don't try to fix old versions of DragonFly!
There are not many DragonFly installations out there that we can't
control and no one is compiling Rust from source. If someone wants to
run Rust on a pre-4.6.1 DragonFly system, the ports system should
provide a patch.
[1]: https://github.com/rust-lang/rust/pull/35494
[2]: https://gitweb.dragonflybsd.org/dragonfly.git/commit/726f7ca07e193db73635e9c4e24e40c96087d6d9
[3]: https://gist.github.com/mneumann/a2f6b6a0a03935b561d6185872a4b222
2016-12-06 19:31:48 +01:00
arthurprs
2c5d2403d7
Smarter HashMap/HashSet extend
2016-12-06 10:14:59 +01:00
bors
b4f4b65f99
Auto merge of #38098 - luser:windows-commandext, r=alexcrichton
...
Add std::os::windows::process::CommandExt. Fixes #37827
This adds a CommandExt trait for Windows along with an implementation of it
for std::process::Command with methods to set the process creation flags that
are passed to CreateProcess.
2016-12-05 06:53:56 +00:00