<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libstd/thread.rs, branch stable</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=stable</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=stable'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2015-03-23T18:28:54+00:00</updated>
<entry>
<title>Implement RFC 909: move thread_local into thread</title>
<updated>2015-03-23T18:28:54+00:00</updated>
<author>
<name>Aaron Turon</name>
<email>aturon@mozilla.com</email>
</author>
<published>2015-03-20T07:46:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6bd3ab0d8140053475a901ad4e2e80e98955bcb0'/>
<id>urn:sha1:6bd3ab0d8140053475a901ad4e2e80e98955bcb0</id>
<content type='text'>
This commit implements [RFC
909](https://github.com/rust-lang/rfcs/pull/909):

The `std::thread_local` module is now deprecated, and its contents are
available directly in `std::thread` as `LocalKey`, `LocalKeyState`, and
`ScopedKey`.

The macros remain exactly as they were, which means little if any code
should break. Nevertheless, this is technically a:

[breaking-change]

Closes #23547
</content>
</entry>
<entry>
<title>Auto merge of #23470 - alexcrichton:less-prelude, r=aturon</title>
<updated>2015-03-21T05:25:21+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2015-03-21T05:25:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ecf8c64e1b1b60f228f0c472c0b0dab4a5b5aa61'/>
<id>urn:sha1:ecf8c64e1b1b60f228f0c472c0b0dab4a5b5aa61</id>
<content type='text'>
This commit removes the reexports of `old_io` traits as well as `old_path` types
and traits from the prelude. This functionality is now all deprecated and needs
to be removed to make way for other functionality like `Seek` in the `std::io`
module (currently reexported as `NewSeek` in the io prelude).

Closes #23377
Closes #23378
</content>
</entry>
<entry>
<title>std: Remove old_io/old_path from the prelude</title>
<updated>2015-03-21T03:07:19+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2015-03-17T20:33:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=212e03181e422f569b6426bc08b713a9efc0d0eb'/>
<id>urn:sha1:212e03181e422f569b6426bc08b713a9efc0d0eb</id>
<content type='text'>
This commit removes the reexports of `old_io` traits as well as `old_path` types
and traits from the prelude. This functionality is now all deprecated and needs
to be removed to make way for other functionality like `Seek` in the `std::io`
module (currently reexported as `NewSeek` in the io prelude).

Closes #23377
Closes #23378
</content>
</entry>
<entry>
<title>don't use Result::ok just to be able to use unwrap/unwrap_or</title>
<updated>2015-03-20T07:19:13+00:00</updated>
<author>
<name>Oliver Schneider</name>
<email>git1984941651981@oli-obk.de</email>
</author>
<published>2015-03-20T07:19:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b4a1e59146c70a12d8c4c1f85c08a2ecf9fb3d2e'/>
<id>urn:sha1:b4a1e59146c70a12d8c4c1f85c08a2ecf9fb3d2e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #23330 - alexcrichton:thread-sleep, r=aturon</title>
<updated>2015-03-17T17:15:54+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2015-03-17T17:15:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bfac337daab9b86971bcb3db61382ac44f94621c'/>
<id>urn:sha1:bfac337daab9b86971bcb3db61382ac44f94621c</id>
<content type='text'>
This function is the current replacement for `std::old_io::timer` which will
soon be deprecated. This function is unstable and has its own feature gate as it
does not yet have an RFC nor has it existed for very long.
</content>
</entry>
<entry>
<title>std: Implement `thread::sleep`</title>
<updated>2015-03-17T16:34:42+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2015-03-13T03:36:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=04cf5344111c357ad80335b88709281bb4bfaa0a'/>
<id>urn:sha1:04cf5344111c357ad80335b88709281bb4bfaa0a</id>
<content type='text'>
This function is the current replacement for `std::old_io::timer` which will
soon be deprecated. This function is unstable and has its own feature gate as it
does not yet have an RFC nor has it existed for very long.
</content>
</entry>
<entry>
<title>thread: 'dur' -&gt; 'duration'</title>
<updated>2015-03-16T21:25:22+00:00</updated>
<author>
<name>Tshepang Lekhonkhobe</name>
<email>tshepang@gmail.com</email>
</author>
<published>2015-03-16T21:23:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4b75dc464868e6800ee73911b50e440de45f783d'/>
<id>urn:sha1:4b75dc464868e6800ee73911b50e440de45f783d</id>
<content type='text'>
Also:

- italize the binding name
- complete a sentence
</content>
</entry>
<entry>
<title>Fallout of std::old_io deprecation</title>
<updated>2015-03-13T17:00:28+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2015-03-11T22:24:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=981bf5f690d1d7c5cf3e1419ac7a7c86dbc7a4d5'/>
<id>urn:sha1:981bf5f690d1d7c5cf3e1419ac7a7c86dbc7a4d5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>std: Stabilize the `io` module</title>
<updated>2015-03-13T03:39:03+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2015-03-11T21:16:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d54bd9f29af67748b7ddf80a5cf285145949ddc2'/>
<id>urn:sha1:d54bd9f29af67748b7ddf80a5cf285145949ddc2</id>
<content type='text'>
The new `std::io` module has had some time to bake now, and this commit
stabilizes its functionality. There are still portions of the module which
remain unstable, and below contains a summart of the actions taken.

This commit also deprecates the entire contents of the `old_io` module in a
blanket fashion. All APIs should now have a reasonable replacement in the
new I/O modules.

Stable APIs:

* `std::io` (the name)
* `std::io::prelude` (the name)
* `Read`
* `Read::read`
* `Read::{read_to_end, read_to_string}` after being modified to return a `usize`
  for the number of bytes read.
* `Write`
* `Write::write`
* `Write::{write_all, write_fmt}`
* `BufRead`
* `BufRead::{fill_buf, consume}`
* `BufRead::{read_line, read_until}` after being modified to return a `usize`
  for the number of bytes read.
* `BufReader`
* `BufReader::{new, with_capacity}`
* `BufReader::{get_ref, get_mut, into_inner}`
* `{Read,BufRead} for BufReader`
* `BufWriter`
* `BufWriter::{new, with_capacity}`
* `BufWriter::{get_ref, get_mut, into_inner}`
* `Write for BufWriter`
* `IntoInnerError`
* `IntoInnerError::{error, into_inner}`
* `{Error,Display} for IntoInnerError`
* `LineWriter`
* `LineWriter::{new, with_capacity}` - `with_capacity` was added
* `LineWriter::{get_ref, get_mut, into_inner}` - `get_mut` was added)
* `Write for LineWriter`
* `BufStream`
* `BufStream::{new, with_capacities}`
* `BufStream::{get_ref, get_mut, into_inner}`
* `{BufRead,Read,Write} for BufStream`
* `stdin`
* `Stdin`
* `Stdin::lock`
* `Stdin::read_line` - added method
* `StdinLock`
* `Read for Stdin`
* `{Read,BufRead} for StdinLock`
* `stdout`
* `Stdout`
* `Stdout::lock`
* `StdoutLock`
* `Write for Stdout`
* `Write for StdoutLock`
* `stderr`
* `Stderr`
* `Stderr::lock`
* `StderrLock`
* `Write for Stderr`
* `Write for StderrLock`
* `io::Result`
* `io::Error`
* `io::Error::last_os_error`
* `{Display, Error} for Error`

Unstable APIs:

(reasons can be found in the commit itself)

* `Write::flush`
* `Seek`
* `ErrorKind`
* `Error::new`
* `Error::from_os_error`
* `Error::kind`

Deprecated APIs

* `Error::description` - available via the `Error` trait
* `Error::detail` - available via the `Display` implementation
* `thread::Builder::{stdout, stderr}`

Changes in functionality:

* `old_io::stdio::set_stderr` is now a noop as the infrastructure for printing
  backtraces has migrated to `std::io`.
* The `ReadExt`, `WriteExt`, and `BufReadExt` extension traits were all removed
  by folding functionality into the corresponding trait.

[breaking-change]
</content>
</entry>
<entry>
<title>std: Remove #[allow] directives in sys modules</title>
<updated>2015-03-12T17:23:27+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2015-03-10T03:04:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c933d44f7bb908aa520250b608f85bfacfccc337'/>
<id>urn:sha1:c933d44f7bb908aa520250b608f85bfacfccc337</id>
<content type='text'>
These were suppressing lots of interesting warnings! Turns out there was also
quite a bit of dead code.
</content>
</entry>
</feed>
