<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/liballoc/sync.rs, branch 1.34.2</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.34.2</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.34.2'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2019-02-10T23:57:25+00:00</updated>
<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>liballoc: revert nested imports style changes.</title>
<updated>2019-02-03T07:27:44+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2019-02-03T07:27:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2396780cdaedf097dd6a8f3927749bcaf5b1238b'/>
<id>urn:sha1:2396780cdaedf097dd6a8f3927749bcaf5b1238b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>liballoc: fix some idiom lints.</title>
<updated>2019-02-02T11:48:12+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2019-02-02T11:48:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=857530cef1f1419e296e5d9ad623b153c06cb3e6'/>
<id>urn:sha1:857530cef1f1419e296e5d9ad623b153c06cb3e6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>liballoc: elide some lifetimes.</title>
<updated>2019-02-02T11:23:15+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2019-02-02T11:23:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e70c2fbd5cbe8bf176f1ed01ba9a53cec7e842a5'/>
<id>urn:sha1:e70c2fbd5cbe8bf176f1ed01ba9a53cec7e842a5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>liballoc: adjust abolute imports + more import fixes.</title>
<updated>2019-02-02T09:34:36+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2019-02-02T09:34:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f09f62f62c401a42bf338a23f8721c7f5a28a800'/>
<id>urn:sha1:f09f62f62c401a42bf338a23f8721c7f5a28a800</id>
<content type='text'>
</content>
</entry>
<entry>
<title>liballoc: refactor &amp; fix some imports.</title>
<updated>2019-02-02T09:14:40+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2019-02-02T09:14:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7693e3e6662c2ae8aa24d69434161f501d855420'/>
<id>urn:sha1:7693e3e6662c2ae8aa24d69434161f501d855420</id>
<content type='text'>
</content>
</entry>
<entry>
<title>liballoc: cargo check passes on 2018</title>
<updated>2019-02-02T07:36:45+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2019-02-02T07:36:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e6e27924e17aa7def20ecaf88abc18ead6d97f93'/>
<id>urn:sha1:e6e27924e17aa7def20ecaf88abc18ead6d97f93</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #56696 - jonas-schievink:weak-counts, r=alexcrichton</title>
<updated>2019-01-31T19:20:14+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2019-01-31T19:20:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f29b4fbd742b8180edb5e06cad0977b08881541b'/>
<id>urn:sha1:f29b4fbd742b8180edb5e06cad0977b08881541b</id>
<content type='text'>
Implement Weak::{strong_count, weak_count}

The counters are also useful on `Weak`, not just on strong references (`Rc` or `Arc`).

In situations where there are still strong references around, you can also get these counts by temporarily upgrading and adjusting the values accordingly. Using the methods introduced here is simpler to do, less error-prone (since you can't forget to adjust the counts), can also be used when no strong references are around anymore, and might be more efficient due to not having to temporarily create an `Rc`.

This is mainly useful in assertions or tests of complex data structures. Data structures might have internal invariants that make them the sole owner of a `Weak` pointer, and an assertion on the weak count could be used to ensure that this indeed happens as expected. Due to the presence of `Weak::upgrade`, the `strong_count` becomes less useful, but it still seems worthwhile to mirror the API of `Rc`.

TODO:
* [X] Tracking issue - https://github.com/rust-lang/rust/issues/57977

Closes https://github.com/rust-lang/rust/issues/50158
</content>
</entry>
<entry>
<title>Add tracking issue to unstable attribute</title>
<updated>2019-01-29T21:34:35+00:00</updated>
<author>
<name>Jonas Schievink</name>
<email>jonasschievink@gmail.com</email>
</author>
<published>2019-01-29T21:34:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0d314f08af086afd7a67131a621f861b2633d6d3'/>
<id>urn:sha1:0d314f08af086afd7a67131a621f861b2633d6d3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make weak_count return an Option&lt;usize&gt;</title>
<updated>2019-01-29T20:58:17+00:00</updated>
<author>
<name>Jonas Schievink</name>
<email>jonasschievink@gmail.com</email>
</author>
<published>2019-01-29T20:58:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b664341d917cafade5a2470579a4c122fdcf941b'/>
<id>urn:sha1:b664341d917cafade5a2470579a4c122fdcf941b</id>
<content type='text'>
</content>
</entry>
</feed>
