<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libstd/sync, branch 1.34.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.34.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.34.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2019-02-20T03:59:10+00:00</updated>
<entry>
<title>Rollup merge of #58553 - scottmcm:more-ihle, r=Centril</title>
<updated>2019-02-20T03:59:10+00:00</updated>
<author>
<name>kennytm</name>
<email>kennytm@gmail.com</email>
</author>
<published>2019-02-19T17:13:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e3a8f7db479ce6562bfc312f412b65dc4f3c77d5'/>
<id>urn:sha1:e3a8f7db479ce6562bfc312f412b65dc4f3c77d5</id>
<content type='text'>
Use more impl header lifetime elision

Inspired by seeing explicit lifetimes on these two:

- https://doc.rust-lang.org/nightly/std/slice/struct.Iter.html#impl-FusedIterator
- https://doc.rust-lang.org/nightly/std/primitive.u32.html#impl-Not

And a follow-up to https://github.com/rust-lang/rust/pull/54687, that started using IHLE in libcore.

Most of the changes in here fall into two big categories:

- Removing lifetimes from common traits that can essentially never user a lifetime from an input (particularly `Drop`, `Debug`, and `Clone`)

- Forwarding impls that are only possible because the lifetime doesn't matter (like `impl&lt;R: Read + ?Sized&gt; Read for &amp;mut R`)

I omitted things that seemed like they could be more controversial, like the handful of iterators that have a `Item: 'static` despite the iterator having a lifetime or the `PartialEq` implementations [where the flipped one cannot elide the lifetime](https://internals.rust-lang.org/t/impl-type-parameter-aliases/9403/2?u=scottmcm).

I also removed two lifetimes that turned out to be completely unused; see https://github.com/rust-lang/rust/issues/41960#issuecomment-464557423
</content>
</entry>
<entry>
<title>Use more impl header lifetime elision</title>
<updated>2019-02-18T03:42:36+00:00</updated>
<author>
<name>Scott McMurray</name>
<email>scottmcm@users.noreply.github.com</email>
</author>
<published>2019-02-18T03:42:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3bea2ca49d24606920b3a81811379debc0668992'/>
<id>urn:sha1:3bea2ca49d24606920b3a81811379debc0668992</id>
<content type='text'>
There are two big categories of changes in here

- Removing lifetimes from common traits that can essentially never user a lifetime from an input (particularly `Drop` &amp; `Debug`)
- Forwarding impls that are only possible because the lifetime doesn't matter (like `impl&lt;R: Read + ?Sized&gt; Read for &amp;mut R`)

I omitted things that seemed like they could be more controversial, like the handful of iterators that have a `Item: 'static` despite the iterator having a lifetime or the `PartialEq` implementations where the flipped one cannot elide the lifetime.
</content>
</entry>
<entry>
<title>Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnik</title>
<updated>2019-02-12T19:09:24+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2019-02-12T19:09:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b244f61b77c42d7be695afd7901ee4418559e518'/>
<id>urn:sha1:b244f61b77c42d7be695afd7901ee4418559e518</id>
<content type='text'>
Cosmetic improvements to doc comments

This has been factored out from https://github.com/rust-lang/rust/pull/58036 to only include changes to documentation comments (throughout the rustc codebase).

r? @steveklabnik

Once you're happy with this, maybe we could get it through with r=1, so it doesn't constantly get invalidated? (I'm not sure this will be an issue, but just in case...) Anyway, thanks for your advice so far!
</content>
</entry>
<entry>
<title>Fiddle through the module visibilities for tests</title>
<updated>2019-02-11T14:08:17+00:00</updated>
<author>
<name>Oliver Scherer</name>
<email>github35764891676564198441@oli-obk.de</email>
</author>
<published>2019-02-06T09:58:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1dba7cb20224b5bb3a22641b2f4f2f73e5157dee'/>
<id>urn:sha1:1dba7cb20224b5bb3a22641b2f4f2f73e5157dee</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move out tests of a deprecated module to work around `#[test]` bugs</title>
<updated>2019-02-11T14:08:17+00:00</updated>
<author>
<name>Oliver Scherer</name>
<email>github35764891676564198441@oli-obk.de</email>
</author>
<published>2019-02-06T09:58:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a83e73dce4f0e80ff7559b3816f4f24391d4ff53'/>
<id>urn:sha1:a83e73dce4f0e80ff7559b3816f4f24391d4ff53</id>
<content type='text'>
https://github.com/rust-lang/rust/issues/47238
</content>
</entry>
<entry>
<title>libs: doc comments</title>
<updated>2019-02-10T23:57:25+00:00</updated>
<author>
<name>Alexander Regueiro</name>
<email>alexreg@me.com</email>
</author>
<published>2019-02-09T22:16:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=99ed06eb8864e704c4a1871ccda4648273bee4ef'/>
<id>urn:sha1:99ed06eb8864e704c4a1871ccda4648273bee4ef</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: doc comments</title>
<updated>2019-02-10T23:42:32+00:00</updated>
<author>
<name>Alexander Regueiro</name>
<email>alexreg@me.com</email>
</author>
<published>2019-02-09T21:23:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b87363e7632b3f20f9b529696ffb5d5d9c3927cd'/>
<id>urn:sha1:b87363e7632b3f20f9b529696ffb5d5d9c3927cd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Simplify Debug implementation of MutexGuard.</title>
<updated>2019-01-17T19:03:59+00:00</updated>
<author>
<name>Mara Bos</name>
<email>m-ou.se@m-ou.se</email>
</author>
<published>2019-01-17T19:03:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2e9deed9f130d2342bec2a55358305cb7137605e'/>
<id>urn:sha1:2e9deed9f130d2342bec2a55358305cb7137605e</id>
<content type='text'>
Just transparently print the guarded data, instead of wrapping it in
`MutexGuard { lock: Mutex { data: ... } }`.
</content>
</entry>
<entry>
<title>Make MutexGuard's Debug implementation more useful.</title>
<updated>2019-01-17T18:00:48+00:00</updated>
<author>
<name>Mara Bos</name>
<email>m-ou.se@m-ou.se</email>
</author>
<published>2019-01-17T17:57:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7b557119883685e541d555135fb81c0dc10e2752'/>
<id>urn:sha1:7b557119883685e541d555135fb81c0dc10e2752</id>
<content type='text'>
Fixes #57702.
</content>
</entry>
<entry>
<title>Auto merge of #56827 - faern:eliminate-recv-timeout-panic, r=KodrAus</title>
<updated>2019-01-02T02:03:15+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2019-01-02T02:03:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=96530344ef951c79e07cad69cf65eddb876b0e2d'/>
<id>urn:sha1:96530344ef951c79e07cad69cf65eddb876b0e2d</id>
<content type='text'>
Eliminate Receiver::recv_timeout panic

Fixes #54552.

This panic is because `recv_timeout` uses `Instant::now() + timeout` internally. This possible panic is not mentioned in the documentation for this method.

Very recently we merged (still unstable) support for checked addition (#56490) of `Instant + Duration`, so it's now finally possible to add these together without risking a panic.
</content>
</entry>
</feed>
