diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-11-26 09:44:43 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-11-26 16:49:46 -0800 |
| commit | f4a775639ca846f29abeed16a7b4e8e1c8819626 (patch) | |
| tree | ad6c9a0c61140ae68169fca89e8641af83c92e33 /src/libstd/io | |
| parent | 702127f6f1b099f8a34804ddb71f821444b7b64e (diff) | |
| parent | 21d5d139fc6e04781b7f9d9eeab0f8f0255ac06b (diff) | |
rollup merge of #19298: nikomatsakis/unboxed-closure-parse-the-plus
Implements RFC 438. Fixes #19092. This is a [breaking-change]: change types like `&Foo+Send` or `&'a mut Foo+'a` to `&(Foo+Send)` and `&'a mut (Foo+'a)`, respectively. r? @brson
Diffstat (limited to 'src/libstd/io')
| -rw-r--r-- | src/libstd/io/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index ba9b074470d..3b272c3fe5d 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -910,7 +910,7 @@ impl<'a> Reader for Box<Reader+'a> { } } -impl<'a> Reader for &'a mut Reader+'a { +impl<'a> Reader for &'a mut (Reader+'a) { fn read(&mut self, buf: &mut [u8]) -> IoResult<uint> { (*self).read(buf) } } @@ -1278,7 +1278,7 @@ impl<'a> Writer for Box<Writer+'a> { } } -impl<'a> Writer for &'a mut Writer+'a { +impl<'a> Writer for &'a mut (Writer+'a) { #[inline] fn write(&mut self, buf: &[u8]) -> IoResult<()> { (**self).write(buf) } |
