<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libsync/sync/mutex.rs, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2014-03-23T16:45:20+00:00</updated>
<entry>
<title>sync: Move the Mutex type to using &amp;self</title>
<updated>2014-03-23T16:45:20+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2014-03-22T07:47:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3572a30e7a4fec7f0bb0957fc72588757111f14e'/>
<id>urn:sha1:3572a30e7a4fec7f0bb0957fc72588757111f14e</id>
<content type='text'>
This also uses the Unsafe type for any interior mutability in the type to avoid
transmutes.
</content>
</entry>
<entry>
<title>std: Rename Chan/Port types and constructor</title>
<updated>2014-03-13T20:23:29+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2014-03-09T21:58:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=78580651131c9daacd7e5e4669af819cdd719f09'/>
<id>urn:sha1:78580651131c9daacd7e5e4669af819cdd719f09</id>
<content type='text'>
* Chan&lt;T&gt; =&gt; Sender&lt;T&gt;
* Port&lt;T&gt; =&gt; Receiver&lt;T&gt;
* Chan::new() =&gt; channel()
* constructor returns (Sender, Receiver) instead of (Receiver, Sender)
* local variables named `port` renamed to `rx`
* local variables named `chan` renamed to `tx`

Closes #11765
</content>
</entry>
<entry>
<title>fix typos with with repeated words, just like this sentence.</title>
<updated>2014-03-06T11:19:14+00:00</updated>
<author>
<name>Kang Seonghoon</name>
<email>public+git@mearie.org</email>
</author>
<published>2014-03-06T07:35:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1c52c81846246e135557f1aa6db5bef4140c8717'/>
<id>urn:sha1:1c52c81846246e135557f1aa6db5bef4140c8717</id>
<content type='text'>
</content>
</entry>
<entry>
<title>std: Change assert_eq!() to use {} instead of {:?}</title>
<updated>2014-03-01T07:01:54+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2014-02-28T09:23:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=02882fbd7edcb8d0d152afcdc8571216efcbd664'/>
<id>urn:sha1:02882fbd7edcb8d0d152afcdc8571216efcbd664</id>
<content type='text'>
Formatting via reflection has been a little questionable for some time now, and
it's a little unfortunate that one of the standard macros will silently use
reflection when you weren't expecting it. This adds small bits of code bloat to
libraries, as well as not always being necessary. In light of this information,
this commit switches assert_eq!() to using {} in the error message instead of
{:?}.

In updating existing code, there were a few error cases that I encountered:

* It's impossible to define Show for [T, ..N]. I think DST will alleviate this
  because we can define Show for [T].
* A few types here and there just needed a #[deriving(Show)]
* Type parameters needed a Show bound, I often moved this to `assert!(a == b)`
* `Path` doesn't implement `Show`, so assert_eq!() cannot be used on two paths.
  I don't think this is much of a regression though because {:?} on paths looks
  awful (it's a byte array).

Concretely speaking, this shaved 10K off a 656K binary. Not a lot, but sometime
significant for smaller binaries.
</content>
</entry>
<entry>
<title>Spellcheck library docs.</title>
<updated>2014-02-17T21:05:35+00:00</updated>
<author>
<name>Huon Wilson</name>
<email>dbau.pp+github@gmail.com</email>
</author>
<published>2014-02-17T11:53:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6555b04dd2fbcd18c8fa8beb2bebc4b81febc6b0'/>
<id>urn:sha1:6555b04dd2fbcd18c8fa8beb2bebc4b81febc6b0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>auto merge of #12235 : huonw/rust/raii-lock, r=alexcrichton</title>
<updated>2014-02-15T23:21:28+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2014-02-15T23:21:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d98668a55996d656072a4cac7abb1dcbbdf4f48b'/>
<id>urn:sha1:d98668a55996d656072a4cac7abb1dcbbdf4f48b</id>
<content type='text'>
- adds a `LockGuard` type returned by `.lock` and `.trylock` that unlocks the mutex in the destructor
- renames `mutex::Mutex` to `StaticNativeMutex` 
- adds a `NativeMutex` type with a destructor
- removes `LittleLock`
- adds `#[must_use]` to `sync::mutex::Guard` to remind people to use it
</content>
</entry>
<entry>
<title>sync: Add `#[must_use]` to the Mutex guard.</title>
<updated>2014-02-15T23:13:56+00:00</updated>
<author>
<name>Huon Wilson</name>
<email>dbau.pp+github@gmail.com</email>
</author>
<published>2014-02-15T01:53:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0f4294b4e2887ffe9d0532564521c456bb89a780'/>
<id>urn:sha1:0f4294b4e2887ffe9d0532564521c456bb89a780</id>
<content type='text'>
This helps people remember to save the return value to keep the mutex
locked as appropriate.
</content>
</entry>
<entry>
<title>std: Rename unstable::mutex::Mutex to StaticNativeMutex.</title>
<updated>2014-02-15T23:13:56+00:00</updated>
<author>
<name>Huon Wilson</name>
<email>dbau.pp+github@gmail.com</email>
</author>
<published>2014-02-15T00:18:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b87ed605c0ef27f5532ec30c92128bd890de5955'/>
<id>urn:sha1:b87ed605c0ef27f5532ec30c92128bd890de5955</id>
<content type='text'>
This better reflects its purpose and design.
</content>
</entry>
<entry>
<title>std: add an RAII unlocker to Mutex.</title>
<updated>2014-02-15T23:13:56+00:00</updated>
<author>
<name>Huon Wilson</name>
<email>dbau.pp+github@gmail.com</email>
</author>
<published>2014-02-13T06:17:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=76a59fd6e2d5c8c42193c047fd5eaba982d499f7'/>
<id>urn:sha1:76a59fd6e2d5c8c42193c047fd5eaba982d499f7</id>
<content type='text'>
This automatically unlocks its lock when it goes out of scope, and
provides a safe(ish) method to call .wait.
</content>
</entry>
<entry>
<title>extern mod =&gt; extern crate</title>
<updated>2014-02-15T06:55:21+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2014-02-14T18:10:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a41b0c25295e06b8eebc4bdcb3021354f766cba0'/>
<id>urn:sha1:a41b0c25295e06b8eebc4bdcb3021354f766cba0</id>
<content type='text'>
This was previously implemented, and it just needed a snapshot to go through
</content>
</entry>
</feed>
