<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libstd/sys/unix, branch 1.27.2</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.27.2</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.27.2'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2018-04-24T14:15:56+00:00</updated>
<entry>
<title>Auto merge of #50079 - NickAtAccuPS:android_abstract_socket, r=sfackler</title>
<updated>2018-04-24T14:15:56+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2018-04-24T14:15:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=38e251ba37231f3471a20a13f503b191ed25a499'/>
<id>urn:sha1:38e251ba37231f3471a20a13f503b191ed25a499</id>
<content type='text'>
Android abstract unix domain sockets AddressKind correction

The prior check causes abstract unix domain sockets to return AddressKind::Unnamed instead of AddressKind::Abstract on Android.

Other than the immediately proceeding comment "macOS seems to return a len of 16 and a zeroed sun_path for unnamed addresses" the check as-implemented does not seem to have alternative explanation. I couldn't find an alternative explanation while stepping though git blame. I suspect the AddressKind::Unnamed nonzero check should instead be if macos, length 16, and zeroed array. @sfackler could you comment on this, the code as-is is the same from your initial addition of abstract uds support.
</content>
</entry>
<entry>
<title>Rollup merge of #49829 - ecstatic-morse:os-docs, r=steveklabnik</title>
<updated>2018-04-24T03:57:03+00:00</updated>
<author>
<name>kennytm</name>
<email>kennytm@gmail.com</email>
</author>
<published>2018-04-24T03:57:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2701c175a507c52e80e262b65bbe003687d4a96a'/>
<id>urn:sha1:2701c175a507c52e80e262b65bbe003687d4a96a</id>
<content type='text'>
Add doc links to `std::os` extension traits

Addresses a small subset of #29367.

This adds documentation links to the original type for various OS-specific extension traits, and uses a common sentence for introducing such traits (which now consistently ends in a period).
</content>
</entry>
<entry>
<title>Rustfmt result (for relevant changes) to satisfy Travis line length check.</title>
<updated>2018-04-19T21:27:05+00:00</updated>
<author>
<name>Nicholas Rishel</name>
<email>nick@accups.com</email>
</author>
<published>2018-04-19T21:27:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=da6142c81057342d8d6686ae4078995aab73b5bc'/>
<id>urn:sha1:da6142c81057342d8d6686ae4078995aab73b5bc</id>
<content type='text'>
Signed-off-by: Nicholas Rishel &lt;nick@accups.com&gt;
</content>
</entry>
<entry>
<title>The prior check causes abstract unix domain sockets to return unnamed on Android.</title>
<updated>2018-04-19T19:55:02+00:00</updated>
<author>
<name>Nicholas Rishel</name>
<email>nick@accups.com</email>
</author>
<published>2018-02-16T20:41:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c7f3621f0e9e6ca617ff5debc634e1e16d0a662f'/>
<id>urn:sha1:c7f3621f0e9e6ca617ff5debc634e1e16d0a662f</id>
<content type='text'>
Signed-off-by: Nicholas Rishel &lt;nick@accups.com&gt;
</content>
</entry>
<entry>
<title>Auto merge of #49488 - alexcrichton:small-wasm-panic, r=sfackler</title>
<updated>2018-04-16T23:19:41+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2018-04-16T23:19:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3809bbf47c8557bd149b3e52ceb47434ca8378d5'/>
<id>urn:sha1:3809bbf47c8557bd149b3e52ceb47434ca8378d5</id>
<content type='text'>
std: Minimize size of panicking on wasm

This commit applies a few code size optimizations for the wasm target to
the standard library, namely around panics. We notably know that in most
configurations it's impossible for us to print anything in
wasm32-unknown-unknown so we can skip larger portions of panicking that
are otherwise simply informative. This allows us to get quite a nice
size reduction.

Finally we can also tweak where the allocation happens for the
`Box&lt;Any&gt;` that we panic with. By only allocating once unwinding starts
we can reduce the size of a panicking wasm module from 44k to 350 bytes.
</content>
</entry>
<entry>
<title>Rollup merge of #49606 - varkor:pipe-repair, r=alexcrichton</title>
<updated>2018-04-16T17:50:58+00:00</updated>
<author>
<name>kennytm</name>
<email>kennytm@gmail.com</email>
</author>
<published>2018-04-16T17:50:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ccd2c403ac6d1b92c49985d09c4b1d0af8f651e1'/>
<id>urn:sha1:ccd2c403ac6d1b92c49985d09c4b1d0af8f651e1</id>
<content type='text'>
Prevent broken pipes causing ICEs

As the private `std::io::print_to` panics if there is an I/O error, which is used by `println!`, the compiler would ICE if one attempted to use a broken pipe (e.g. `rustc --help | false`). This introduces a new (private) macro `try_println!` which allows us to avoid this.

As a side note, it seems this macro might be useful publicly (and actually there seems to be [a crate specifically for this purpose](https://crates.io/crates/try_print/)), though that can probably be left for a future discussion.

One slight alternative approach would be to simply early exit without an error (i.e. exit code `0`), which [this comment](https://github.com/rust-lang/rust/issues/34376#issuecomment-377822526) suggests is the usual approach. I've opted not to take that approach initially, because I think it's more helpful to know when there is a broken pipe.

Fixes #34376.
</content>
</entry>
<entry>
<title>Prefer unprefixed paths for well known structs</title>
<updated>2018-04-14T22:32:24+00:00</updated>
<author>
<name>Dylan MacKenzie</name>
<email>ecstaticmorse@gmail.com</email>
</author>
<published>2018-04-11T00:03:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d5bee64df400126279e71562352936d5e4d14433'/>
<id>urn:sha1:d5bee64df400126279e71562352936d5e4d14433</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add doc links to `std::os` extension traits</title>
<updated>2018-04-14T22:32:24+00:00</updated>
<author>
<name>Dylan MacKenzie</name>
<email>ecstaticmorse@gmail.com</email>
</author>
<published>2018-04-10T00:44:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=182d99cfd1a551b9daa3d7f6896775278fb2962e'/>
<id>urn:sha1:182d99cfd1a551b9daa3d7f6896775278fb2962e</id>
<content type='text'>
Add documentation links to the original type for various OS-specific
extension traits and normalize the language for introducing such traits.
Also, remove some outdated comments around the extension trait
definitions.
</content>
</entry>
<entry>
<title>std: Minimize size of panicking on wasm</title>
<updated>2018-04-13T14:03:00+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2018-03-29T21:59:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c3a5d6b130e27d7d7587f56581247d5b08c38594'/>
<id>urn:sha1:c3a5d6b130e27d7d7587f56581247d5b08c38594</id>
<content type='text'>
This commit applies a few code size optimizations for the wasm target to
the standard library, namely around panics. We notably know that in most
configurations it's impossible for us to print anything in
wasm32-unknown-unknown so we can skip larger portions of panicking that
are otherwise simply informative. This allows us to get quite a nice
size reduction.

Finally we can also tweak where the allocation happens for the
`Box&lt;Any&gt;` that we panic with. By only allocating once unwinding starts
we can reduce the size of a panicking wasm module from 44k to 350 bytes.
</content>
</entry>
<entry>
<title>Import the `alloc` crate as `alloc_crate` in std</title>
<updated>2018-04-12T20:52:47+00:00</updated>
<author>
<name>Simon Sapin</name>
<email>simon.sapin@exyr.org</email>
</author>
<published>2018-04-03T12:36:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1b895d8b88413f72230fbc0f00c67328870a2e9a'/>
<id>urn:sha1:1b895d8b88413f72230fbc0f00c67328870a2e9a</id>
<content type='text'>
… to make the name `alloc` available.
</content>
</entry>
</feed>
