<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libstd/sys_common, branch 1.44.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.44.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.44.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-04-14T20:36:07+00:00</updated>
<entry>
<title>Add illumos triple</title>
<updated>2020-04-14T20:36:07+00:00</updated>
<author>
<name>Patrick Mooney</name>
<email>pmooney@oxide.computer</email>
</author>
<published>2020-04-13T23:37:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b77aefb76ebb9e73cf5a26885c131674495f434d'/>
<id>urn:sha1:b77aefb76ebb9e73cf5a26885c131674495f434d</id>
<content type='text'>
Co-Authored-By: Jason King &lt;jason.brian.king@gmail.com&gt;
Co-Authored-By: Joshua M. Clulow &lt;jmc@oxide.computer&gt;
</content>
</entry>
<entry>
<title>Forward OsStr::clone_into to the inner Vec</title>
<updated>2020-04-07T01:26:37+00:00</updated>
<author>
<name>Josh Stone</name>
<email>jistone@redhat.com</email>
</author>
<published>2020-03-20T22:46:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f854070bb820501d88d1b029660bfde663595530'/>
<id>urn:sha1:f854070bb820501d88d1b029660bfde663595530</id>
<content type='text'>
Despite OS differences, they're all just `Vec&lt;u8&gt;` inside, so we can
just forward `clone_into` calls to that optimized implementation.
</content>
</entry>
<entry>
<title>Inline start_thread into its callers.</title>
<updated>2020-03-31T22:15:14+00:00</updated>
<author>
<name>Vytautas Astrauskas</name>
<email>astrauv@amazon.com</email>
</author>
<published>2020-03-31T19:35:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=753bc7ddf8a0f00acf039731947a12d06ad30884'/>
<id>urn:sha1:753bc7ddf8a0f00acf039731947a12d06ad30884</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #69937 - TyPR124:osstr_ascii, r=dtolnay</title>
<updated>2020-03-29T00:32:17+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2020-03-29T00:32:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d584f5a386c4d06afbe1d7375bfe43c08b19549d'/>
<id>urn:sha1:d584f5a386c4d06afbe1d7375bfe43c08b19549d</id>
<content type='text'>
ASCII methods on OsStr

Would close #69566

I don't know enough about encodings to know if this is a valid change, however the comment on the issue suggests it could be.

This does two things:

1. Makes ASCII methods available on OsStr

2. Makes it possible to obtain a `&amp;mut OsStr`. This is necessary to actually use `OsStr::make_ascii_*case` methods since they modify the underlying value. As far as I can tell, the only way to modify a `&amp;mut OsStr` is via the methods I just added.

My original hope was to have these methods on `OsStrExt` for Windows, since the standard library already assumes `make_ascii_uppercase` is valid in Windows (see the change I made to windows/process.rs). If it is found these are not valid changes on non-Windows platforms, I can move the methods to the ext trait instead.
</content>
</entry>
<entry>
<title>ascii methods on osstr</title>
<updated>2020-03-28T22:34:48+00:00</updated>
<author>
<name>TyPR124</name>
<email>t.ruckinger@gmail.com</email>
</author>
<published>2020-03-11T19:53:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cc584d516697c8e058672e61a69f25dfa08bf688'/>
<id>urn:sha1:cc584d516697c8e058672e61a69f25dfa08bf688</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #70048 - TyPR124:mutable_osstr, r=dtolnay</title>
<updated>2020-03-27T00:23:51+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2020-03-27T00:23:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c0369c4523caecda8af40f4eb84509b42b673d85'/>
<id>urn:sha1:c0369c4523caecda8af40f4eb84509b42b673d85</id>
<content type='text'>
Allow obtaining &amp;mut OsStr

```rust
impl DerefMut for OsString {...}              // type Target = OsStr
impl IndexMut&lt;RangeFull&gt; for OsString {...}   // type Output = OsStr
```

---

This change is pulled out of #69937 per @dtolnay

This implements `DerefMut for OsString` to allow obtaining a `&amp;mut OsStr`. This also implements `IndexMut for OsString`, which is used by `DerefMut`. This pattern is the same as is used by `Deref`.

This is necessary to for methods like `make_ascii_lowercase` which need to mutate the underlying value.
</content>
</entry>
<entry>
<title>Rollup merge of #69955 - alexcrichton:stderr-infallible, r=sfackler</title>
<updated>2020-03-21T12:06:38+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2020-03-21T12:06:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=276b54e9c930c4ff015e1958ad1c640deffd29b2'/>
<id>urn:sha1:276b54e9c930c4ff015e1958ad1c640deffd29b2</id>
<content type='text'>
Fix abort-on-eprintln during process shutdown

This commit fixes an issue where if `eprintln!` is used in a TLS
destructor it can accidentally cause the process to abort. TLS
destructors are executed after `main` returns on the main thread, and at
this point we've also deinitialized global `Lazy` values like those
which store the `Stderr` and `Stdout` internals. This means that despite
handling TLS not being accessible in `eprintln!`, we will fail due to
not being able to call `stderr()`. This means that we'll double-panic
quickly because panicking also attempt to write to stderr.

The fix here is to reimplement the global stderr handle to avoid the
need for destruction. This avoids the need for `Lazy` as well as the
hidden panic inside of the `stderr` function.

Overall this should improve the robustness of printing errors and/or
panics in weird situations, since the `stderr` accessor should be
infallible in more situations.
</content>
</entry>
<entry>
<title>remove redundant returns (clippy::needless_return)</title>
<updated>2020-03-20T19:23:03+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2020-03-20T14:03:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ad00e9188766b8accdce93b264ed8b13aa12a820'/>
<id>urn:sha1:ad00e9188766b8accdce93b264ed8b13aa12a820</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix abort-on-eprintln during process shutdown</title>
<updated>2020-03-20T14:34:56+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2020-03-12T18:39:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5edaa7eefd76d4996dcf85dfc1c1a3f737087257'/>
<id>urn:sha1:5edaa7eefd76d4996dcf85dfc1c1a3f737087257</id>
<content type='text'>
This commit fixes an issue where if `eprintln!` is used in a TLS
destructor it can accidentally cause the process to abort. TLS
destructors are executed after `main` returns on the main thread, and at
this point we've also deinitialized global `Lazy` values like those
which store the `Stderr` and `Stdout` internals. This means that despite
handling TLS not being accessible in `eprintln!`, we will fail due to
not being able to call `stderr()`. This means that we'll double-panic
quickly because panicking also attempt to write to stderr.

The fix here is to reimplement the global stderr handle to avoid the
need for destruction. This avoids the need for `Lazy` as well as the
hidden panic inside of the `stderr` function.

Overall this should improve the robustness of printing errors and/or
panics in weird situations, since the `stderr` accessor should be
infallible in more situations.
</content>
</entry>
<entry>
<title>add comments about safety</title>
<updated>2020-03-16T20:12:54+00:00</updated>
<author>
<name>TyPR124</name>
<email>t.ruckinger@gmail.com</email>
</author>
<published>2020-03-16T20:12:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=21975a1aaa682a88266970459f6f67829774d6c4'/>
<id>urn:sha1:21975a1aaa682a88266970459f6f67829774d6c4</id>
<content type='text'>
</content>
</entry>
</feed>
