<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libstd/sync, branch 1.30.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.30.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.30.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2018-09-06T21:32:30+00:00</updated>
<entry>
<title>Fix invalid urls</title>
<updated>2018-09-06T21:32:30+00:00</updated>
<author>
<name>Guillaume Gomez</name>
<email>guillaume1.gomez@gmail.com</email>
</author>
<published>2018-07-01T16:51:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c1ad1b03388778893159c549db82b2716c71f102'/>
<id>urn:sha1:c1ad1b03388778893159c549db82b2716c71f102</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #53075 - Mark-Simulacrum:update-cargolock, r=alexcrichton</title>
<updated>2018-09-05T03:04:20+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2018-09-05T03:04:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0be2c303692cab31390e52701007cfa87867bf74'/>
<id>urn:sha1:0be2c303692cab31390e52701007cfa87867bf74</id>
<content type='text'>
Update Cargo.lock

This also includes major version bumps for the rand crate used by core, std, and alloc tests, among other crates (regex, etc.) used elsewhere. Since these are all internal there should be no user-visible changes.

r? @alexcrichton
</content>
</entry>
<entry>
<title>Auto merge of #53027 - matklad:once_is_completed, r=alexcrichton</title>
<updated>2018-09-05T00:37:03+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2018-09-05T00:37:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f68b7cc59896427d378c9e3bae6f5fd7a1f1fad9'/>
<id>urn:sha1:f68b7cc59896427d378c9e3bae6f5fd7a1f1fad9</id>
<content type='text'>
Allow to check if sync::Once is already initialized

Hi!

I propose to expose a way to check if a `Once` instance is initialized.

I need it in `once_cell`. `OnceCell` is effetively a pair of `(Once, UnsafeCell&lt;Option&lt;T&gt;&gt;)`, which can set the `T` only once. Because I can't check if `Once` is initialized, I am forced to add an indirection and check the value of ptr instead:

https://github.com/matklad/once_cell/blob/8127a81976c3f2f4c0860562c3f14647ebc025c0/src/lib.rs#L423-L429

https://github.com/matklad/once_cell/blob/8127a81976c3f2f4c0860562c3f14647ebc025c0/src/lib.rs#L457-L461

The `parking_lot`'s version of `Once` exposes the state as an enum: https://docs.rs/parking_lot/0.6.3/parking_lot/struct.Once.html#method.state.

I suggest, for now, just to add a simple `bool` function: this fits my use-case perfectly, exposes less implementation details, and is forward-compatible with more fine-grained state checking.
</content>
</entry>
<entry>
<title>Breaking change upgrades</title>
<updated>2018-09-04T19:22:08+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2018-08-04T22:24:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9ec5ef541ad17986bfe6ae067a84ea8f7b7ae133'/>
<id>urn:sha1:9ec5ef541ad17986bfe6ae067a84ea8f7b7ae133</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix typos found by codespell.</title>
<updated>2018-08-19T15:41:28+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2018-08-19T13:30:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=71120ef1e5cb885ee45e6148970db6ce93ce1aca'/>
<id>urn:sha1:71120ef1e5cb885ee45e6148970db6ce93ce1aca</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #52936 - felixrabe:patch-1, r=alexcrichton</title>
<updated>2018-08-14T22:22:18+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2018-08-14T22:22:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5bb2094d8934c420dbcc41875dc64eb9d82cbb6f'/>
<id>urn:sha1:5bb2094d8934c420dbcc41875dc64eb9d82cbb6f</id>
<content type='text'>
Document #39364 – Panic in mpsc::Receiver::recv_timeout

I can still reproduce #39364 with the example code at https://github.com/rust-lang/rust/issues/39364#issuecomment-320637702.

I'm opening this PR in an attempt to document this bug as a known issue in [libstd/sync/mpsc/mod.rs](https://github.com/rust-lang/rust/blob/master/src/libstd/sync/mpsc/mod.rs).

Inputs very much welcome. ([Nightly docs for `recv_timeout`.](https://doc.rust-lang.org/nightly/std/sync/mpsc/struct.Receiver.html?search=#method.recv_timeout))
</content>
</entry>
<entry>
<title>Reduce code duplication in Once</title>
<updated>2018-08-09T17:50:43+00:00</updated>
<author>
<name>Aleksey Kladov</name>
<email>aleksey.kladov@gmail.com</email>
</author>
<published>2018-08-06T13:31:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e1bd0e7b4e9009ada545580b2698a11631f1f597'/>
<id>urn:sha1:e1bd0e7b4e9009ada545580b2698a11631f1f597</id>
<content type='text'>
</content>
</entry>
<entry>
<title>"Panics" -&gt; "Known Issues"; rm trailing WS</title>
<updated>2018-08-07T15:34:34+00:00</updated>
<author>
<name>Felix Rabe</name>
<email>felix@rabe.io</email>
</author>
<published>2018-08-07T15:34:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=025f41f4c0db5ed65ae6a15ec8bb4e5872bc16ff'/>
<id>urn:sha1:025f41f4c0db5ed65ae6a15ec8bb4e5872bc16ff</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Less words better than moar words</title>
<updated>2018-08-07T14:39:09+00:00</updated>
<author>
<name>Felix Rabe</name>
<email>felix@rabe.io</email>
</author>
<published>2018-08-07T14:39:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6e2051cd084aee3aa5cef0d8ec65fc564f86ed1c'/>
<id>urn:sha1:6e2051cd084aee3aa5cef0d8ec65fc564f86ed1c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rephrase</title>
<updated>2018-08-07T14:38:02+00:00</updated>
<author>
<name>Felix Rabe</name>
<email>felix@rabe.io</email>
</author>
<published>2018-08-07T14:38:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c574720d88f9310ed3fc0489c9a8d5c3ef832c2c'/>
<id>urn:sha1:c574720d88f9310ed3fc0489c9a8d5c3ef832c2c</id>
<content type='text'>
</content>
</entry>
</feed>
