<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libstd/thread, branch 1.18.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.18.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.18.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2017-04-12T19:58:10+00:00</updated>
<entry>
<title>Auto merge of #41008 - sagebind:thread_id, r=alexcrichton</title>
<updated>2017-04-12T19:58:10+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2017-04-12T19:58:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=14481f72102ba2abb5f314d5537fee90352981c5'/>
<id>urn:sha1:14481f72102ba2abb5f314d5537fee90352981c5</id>
<content type='text'>
Derive Hash for ThreadId + better example

Derive `Hash` for `ThreadId` (see comments in #21507). Useful for making maps based on thread, e.g. `HashMap&lt;ThreadId, ?&gt;`. Also update example code for thread IDs to be more useful.
</content>
</entry>
<entry>
<title>Fix Markdown issues in the docs</title>
<updated>2017-04-06T11:57:40+00:00</updated>
<author>
<name>Oliver Middleton</name>
<email>olliemail27@gmail.com</email>
</author>
<published>2017-04-06T11:57:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b4be4758361bf1b03410a523e8672b1c1fa7d385'/>
<id>urn:sha1:b4be4758361bf1b03410a523e8672b1c1fa7d385</id>
<content type='text'>
* Since the switch to pulldown-cmark reference links need a blank line
before the URLs.
* Reference link references are not case sensitive.
* Doc comments need to be indented uniformly otherwise rustdoc gets
confused.
</content>
</entry>
<entry>
<title>Use derived Debug for ThreadId</title>
<updated>2017-04-04T15:44:57+00:00</updated>
<author>
<name>Stephen M. Coakley</name>
<email>me@stephencoakley.com</email>
</author>
<published>2017-04-04T15:44:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cd14a323f42cf57695e713a4f4fd00fddc10efd5'/>
<id>urn:sha1:cd14a323f42cf57695e713a4f4fd00fddc10efd5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Derive Hash for ThreadId + better example</title>
<updated>2017-04-03T06:23:52+00:00</updated>
<author>
<name>Stephen M. Coakley</name>
<email>me@stephencoakley.com</email>
</author>
<published>2017-04-02T03:17:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=282029526646fc93cd8bc098191c4e110a4c4938'/>
<id>urn:sha1:282029526646fc93cd8bc098191c4e110a4c4938</id>
<content type='text'>
</content>
</entry>
<entry>
<title>std::thread docs: fix link to current()</title>
<updated>2017-04-02T10:03:54+00:00</updated>
<author>
<name>Simon Sapin</name>
<email>simon.sapin@exyr.org</email>
</author>
<published>2017-04-02T10:03:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=509ef4c496ffafdc635c94e52e4d19b01d0bfb6a'/>
<id>urn:sha1:509ef4c496ffafdc635c94e52e4d19b01d0bfb6a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #40503 - swgillespie:thread-hack-removal, r=sfackler</title>
<updated>2017-03-17T12:49:02+00:00</updated>
<author>
<name>Corey Farwell</name>
<email>coreyf@rwell.org</email>
</author>
<published>2017-03-17T12:49:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d7a09d4e655871671a6c94c05a506ae3626ce528'/>
<id>urn:sha1:d7a09d4e655871671a6c94c05a506ae3626ce528</id>
<content type='text'>
std: remove a workaround for privacy limitations

`std::thread::Thread` implements a non-exported `NewThread` trait to allow for internal-only use of `Thread::new`. Nowadays we have `pub(crate)`, which accomplishes the same thing but much more idiomatically.

Rustdoc handles this correctly (I checked and I didn't see `Thread::new` on the rustdoc entry for `Thread` with this change), and the stage1 `rustc` emits the correct error still (I'm assuming that the stage1 compiler uses my `libstd`?):

```
$ ./build/x86_64-apple-darwin/stage1/bin/rustc test.rs
error: method `new` is private
 --&gt; test.rs:4:18
  |
4 |     let thread = thread::Thread::new(None);
  |                  ^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error
```
</content>
</entry>
<entry>
<title>Rollup merge of #40457 - frewsxcv:frewsxcv-macos, r=steveklabnik</title>
<updated>2017-03-17T12:48:52+00:00</updated>
<author>
<name>Corey Farwell</name>
<email>coreyf@rwell.org</email>
</author>
<published>2017-03-17T12:48:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dee6989b437c966a7cb0b3b6f572f71f529f282c'/>
<id>urn:sha1:dee6989b437c966a7cb0b3b6f572f71f529f282c</id>
<content type='text'>
Update usages of 'OSX' (and other old names) to 'macOS'.

As of last year with version 'Sierra', the Mac operating system is now
called 'macOS'.
</content>
</entry>
<entry>
<title>Remove function invokation parens from documentation links.</title>
<updated>2017-03-14T01:43:18+00:00</updated>
<author>
<name>Corey Farwell</name>
<email>coreyf@rwell.org</email>
</author>
<published>2017-03-12T18:04:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e7b0f2badf7c3393f1b36339b121054d05353442'/>
<id>urn:sha1:e7b0f2badf7c3393f1b36339b121054d05353442</id>
<content type='text'>
This was never established as a convention we should follow in the 'More
API Documentation Conventions' RFC:

https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md
</content>
</entry>
<entry>
<title>std: remove a workaround for privacy limitations that isn't necessary anymore</title>
<updated>2017-03-14T01:42:23+00:00</updated>
<author>
<name>Sean Gillespie</name>
<email>sean@swgillespie.me</email>
</author>
<published>2017-03-14T01:42:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1545f4e2a323eb869b13f36bd05cc91ff21d5161'/>
<id>urn:sha1:1545f4e2a323eb869b13f36bd05cc91ff21d5161</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update usages of 'OSX' (and other old names) to 'macOS'.</title>
<updated>2017-03-12T18:59:04+00:00</updated>
<author>
<name>Corey Farwell</name>
<email>coreyf@rwell.org</email>
</author>
<published>2017-03-12T18:13:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=97a1b6a055d69cf21faa9773133725bdfddc5196'/>
<id>urn:sha1:97a1b6a055d69cf21faa9773133725bdfddc5196</id>
<content type='text'>
As of last year with version 'Sierra', the Mac operating system is now
called 'macOS'.
</content>
</entry>
</feed>
