Yamakaky
40053a46ff
Impl From<Ipv4Addr, Ipv6Addr> for IpAddr.
...
Fixes https://github.com/rust-lang/rfcs/issues/1816 .
2016-12-24 23:32:54 -05:00
bors
e60aa62ffe
Auto merge of #38594 - steveklabnik:rollup, r=steveklabnik
...
Rollup of 14 pull requests
- Successful merges: #37956 , #38013 , #38297 , #38480 , #38497 , #38502 , #38505 , #38513 , #38521 , #38549 , #38554 , #38557 , #38568 , #38572
- Failed merges:
2016-12-24 21:14:17 +00:00
Steve Klabnik
df63b0ce72
Rollup merge of #38572 - GuillaumeGomez:join_handle_docs, r=frewsxcv
...
Add JoinHandle missing examples
r? @frewsxcv
2016-12-24 14:29:34 -05:00
Steve Klabnik
e9a2a77746
Rollup merge of #38521 - jxson:remove-magenta-warnings, r=sfackler
...
Removes magenta build warning.
Small bug fix to remove an unused type in the magenta process code that causes build failures for magenta's rustc.
r? @alexcrichton
@tedsta @raphlinus
2016-12-24 14:29:29 -05:00
Steve Klabnik
67bef48739
Rollup merge of #38513 - GuillaumeGomez:thread_fn_docs, r=frewsxcv
...
Add missing examples in some thread functions
r? @frewsxcv
2016-12-24 14:29:28 -05:00
Steve Klabnik
3c26ff450c
Rollup merge of #38505 - estebank:why-lines, r=frewsxcv
...
Docs: Explain why/when `.lines()` returns an error
Fix #37744 .
2016-12-24 14:29:26 -05:00
bors
00e61d4185
Auto merge of #38443 - frewsxcv:file-docs, r=brson
...
Improve the API examples for `std::fs::File`.
Fixes https://github.com/rust-lang/rust/issues/35875 .
2016-12-24 18:00:45 +00:00
bors
d86cf13316
Auto merge of #38062 - alexcrichton:fix-line-writer, r=brson
...
std: Fix partial writes in LineWriter
Previously the `LineWriter` could successfully write some bytes but then fail to
report that it has done so. Additionally, an erroneous flush after a successful
write was permanently ignored. This commit fixes these two issues by (a)
maintaining a `need_flush` flag to indicate whether a flush should be the first
operation in `LineWriter::write` and (b) avoiding returning an error once some
bytes have been successfully written.
Closes #37807
2016-12-24 13:28:37 +00:00
Guillaume Gomez
00645e8504
Add JoinHandle missing examples
2016-12-24 10:40:27 +01:00
Guillaume Gomez
292d36febd
Add missing doc examples for Builder
2016-12-24 10:37:04 +01:00
Clar Charr
9301e2e65d
Comparison between IpAddr and Ipv[46]Addr.
2016-12-23 14:51:46 -05:00
Jeremy Soller
9f9489b976
Cloexec when creating directories
2016-12-23 12:21:29 -07:00
Jeremy Soller
a0a600f0c6
Add Debug to OpenOptions and DirBuilder
2016-12-23 09:42:38 -07:00
bors
99913c5ead
Auto merge of #38401 - redox-os:redox_cross, r=brson
...
Redox Cross Compilation
I will admit - there are things here that I wish I did not have to do. This completes the ability to create a cross compiler from the rust repository for `x86_64-unknown-redox`. I will document this PR with inline comments explaining some things.
[View this gist to see how a cross compiler is built](https://gist.github.com/jackpot51/6680ad973986e84d69c79854249f2b7e )
Prior discussion of a smaller change is here: https://github.com/rust-lang/rust/pull/38366
2016-12-23 09:09:26 +00:00
Jeremy Soller
2ddd11788b
Revert rt.rs
2016-12-22 16:19:05 -07:00
Jeremy Soller
1eb6c44b1c
Remove start functions, use newlib instead of openlibm + ralloc
2016-12-22 16:13:14 -07:00
Peter Atashian
23cfcddd77
Fix fs tests on Windows systems with non-english locales.
2016-12-22 06:43:43 -05:00
Jeremy Soller
7d3ae87453
Add RawFd traits for net
2016-12-21 20:19:32 -07:00
Jason Campbell
88af5bf5ec
Removes magenta build warning.
...
Small bug fix to remove an unused type in the magenta process code that causes build failures for magenta's rustc.
2016-12-21 13:29:55 -08:00
Corey Farwell
4a354abeae
Fix 'unhygienically' typo.
2016-12-21 10:44:54 -08:00
Corey Farwell
44c2eb9182
Move parenthesized statement within sentence.
2016-12-21 10:44:08 -08:00
Corey Farwell
8a472a5567
Add a more complete doc example for 'include' macro.
2016-12-21 10:44:07 -08:00
Jeremy Soller
92c8e0f352
Merge branch 'redox_cross' of https://github.com/redox-os/rust into redox_cross
2016-12-21 11:38:13 -07:00
Jeremy Soller
e909e431d5
Update liblibc, go back to lazy linking openlibm
2016-12-21 11:38:04 -07:00
Guillaume Gomez
99529825e8
Add missing examples in some thread functions
2016-12-21 18:05:11 +01:00
Jeremy Soller
bf50acbc09
Fix tidy
2016-12-20 21:29:42 -07:00
Esteban Küber
24334a03a3
Docs: Explain why/when .lines() returns an error
2016-12-20 17:09:36 -08:00
Jeremy Soller
7697c7277e
Static link openlibm
2016-12-20 18:03:30 -07:00
Jeremy Soller
fd4bc88880
Fix building without backtrace
2016-12-20 17:52:47 -07:00
Jeremy Soller
65eecf8bb3
Readd statvfs
2016-12-20 16:12:36 -07:00
Jeremy Soller
e55596fa20
Move rt into sys::rt, fix tidy
2016-12-20 15:26:58 -07:00
Alex Crichton
214a6c6166
Fix compile errors and such
2016-12-20 14:09:50 -08:00
Jeremy Soller
01157e6b3c
Link openlibm only in libstd
2016-12-20 14:30:27 -07: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
Jeremy Soller
86f85c1399
Move start functions into libstd/rt
2016-12-20 12:41:33 -07: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
Jeremy Soller
57bc1a982e
Add arm syscalls
2016-12-20 11:17:09 -07:00
Tobias Bucher
a0b346a349
Allow writeln! without arguments, in symmetry with println!
2016-12-19 16:57:23 +01: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