<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libstd/thread, branch 1.46.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.46.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.46.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-06-10T01:35:47+00:00</updated>
<entry>
<title>Migrate to numeric associated consts</title>
<updated>2020-06-10T01:35:47+00:00</updated>
<author>
<name>Lzu Tao</name>
<email>taolzu@gmail.com</email>
</author>
<published>2020-06-02T07:59:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fff822fead6249671cbcb090b24bce58fab38de0'/>
<id>urn:sha1:fff822fead6249671cbcb090b24bce58fab38de0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Warn against thread::sleep in async fn</title>
<updated>2020-05-12T15:38:02+00:00</updated>
<author>
<name>Kornel</name>
<email>kornel@geekhood.net</email>
</author>
<published>2020-05-12T15:38:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2d39f5abcd3953eb1578f718c75c39c457bcb009'/>
<id>urn:sha1:2d39f5abcd3953eb1578f718c75c39c457bcb009</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix clippy warnings</title>
<updated>2020-05-11T15:13:32+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2020-05-11T11:01:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8bfd84539e847b9ac9d7c811a370a9c3840d6c3b'/>
<id>urn:sha1:8bfd84539e847b9ac9d7c811a370a9c3840d6c3b</id>
<content type='text'>
Fixes clippy::{cone_on_copy, filter_next, redundant_closure, single_char_pattern, len_zero,redundant_field_names, useless_format, identity_conversion, map_clone, into_iter_on_ref, needless_return, option_as_ref_deref, unused_unit, unnecessary_mut_passed}
</content>
</entry>
<entry>
<title>Rollup merge of #71256 - cuviper:must_use_replace, r=estebank</title>
<updated>2020-04-22T21:19:19+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2020-04-22T21:19:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=10e47f5b7b58e1413ddc7cbb3164138c15e9684e'/>
<id>urn:sha1:10e47f5b7b58e1413ddc7cbb3164138c15e9684e</id>
<content type='text'>
Lint must_use on mem::replace

This adds a hint on `mem::replace`, "if you don't need the old value,
you can just assign the new value directly". This is in similar spirit
to the `must_use` on `ManuallyDrop::take`.
</content>
</entry>
<entry>
<title>Stop accessing module level int consts via crate::&lt;Ty&gt;</title>
<updated>2020-04-20T21:38:06+00:00</updated>
<author>
<name>Linus Färnstrand</name>
<email>faern@faern.net</email>
</author>
<published>2020-04-16T22:43:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9fc083323503134a9af73516f22347ecc6650705'/>
<id>urn:sha1:9fc083323503134a9af73516f22347ecc6650705</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix unused results from mem::replace</title>
<updated>2020-04-17T20:59:14+00:00</updated>
<author>
<name>Josh Stone</name>
<email>jistone@redhat.com</email>
</author>
<published>2020-04-17T20:59:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ccecae5fdd27fa7695fd45c98ff755029a750eb7'/>
<id>urn:sha1:ccecae5fdd27fa7695fd45c98ff755029a750eb7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add inline attributes for functions used in the query system</title>
<updated>2020-03-30T12:37:44+00:00</updated>
<author>
<name>John Kåre Alsaker</name>
<email>john.kare.alsaker@gmail.com</email>
</author>
<published>2020-03-30T12:36:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=87cdfb6e71b0ebe3e41e04d8840a20d7428197be'/>
<id>urn:sha1:87cdfb6e71b0ebe3e41e04d8840a20d7428197be</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Return NonZeroU64 from ThreadId::as_u64.</title>
<updated>2020-03-21T18:48:23+00:00</updated>
<author>
<name>Thomas Bächler</name>
<email>thomas.baechler@gmx.de</email>
</author>
<published>2020-03-21T18:48:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c8140a88f67cf1fea104b1aaa615af7816984615'/>
<id>urn:sha1:c8140a88f67cf1fea104b1aaa615af7816984615</id>
<content type='text'>
As discussed in #67939, this allows turning Option&lt;ThreadId&gt; into Option&lt;NonZeroU64&gt; which
can then be stored inside an AtomicU64.
</content>
</entry>
<entry>
<title>Add an unstable conversion from thread ID to u64</title>
<updated>2020-01-06T15:56:13+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2019-12-23T17:54:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d9a7db901e33940cb2ccda6afe21b9916e66d9d2'/>
<id>urn:sha1:d9a7db901e33940cb2ccda6afe21b9916e66d9d2</id>
<content type='text'>
We see multiple cases inside rustc and ecosystem code where ThreadId is
transmuted to u64, exploiting the underlying detail. This is suboptimal
(can break unexpectedly if we change things in std).

It is unlikely that ThreadId will ever need to be larger than u64 --
creating even 2^32 threads over the course of a program is quite hard,
2^64 is even harder. As such, we do not choose to return a larger sized
type (e.g. u128). If we choose to shrink ThreadId in the future, or
otherwise change its internals, it is likely that a mapping to u64 will
still be applicable (though may become more complex).
</content>
</entry>
<entry>
<title>Format the world</title>
<updated>2019-12-22T22:42:47+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2019-12-22T22:42:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a06baa56b95674fc626b3c3fd680d6a65357fe60'/>
<id>urn:sha1:a06baa56b95674fc626b3c3fd680d6a65357fe60</id>
<content type='text'>
</content>
</entry>
</feed>
