about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-01-09 03:51:27 -0800
committerbors <bors@rust-lang.org>2014-01-09 03:51:27 -0800
commitfb44e20f657302e9b69101d0c26b095636349d38 (patch)
tree42d33246c2e96cae456673eb854f000ea5b02c52 /src/libsyntax/parse
parentc34fc5e33b9e7839fb887790959bde64999bf745 (diff)
parent6df57ec2e2cf4dc956b43c05fe7c6d6006f0a80a (diff)
downloadrust-fb44e20f657302e9b69101d0c26b095636349d38.tar.gz
rust-fb44e20f657302e9b69101d0c26b095636349d38.zip
auto merge of #11394 : alexcrichton/rust/no-decorator, r=cmr
This is just an unnecessary trait that no one's ever going to parameterize over
and it's more useful to just define the methods directly on the types
themselves. The implementors of this type almost always don't want
inner_mut_ref() but they're forced to define it as well.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs
index c20e7f4aaec..b64f16aff59 100644
--- a/src/libsyntax/parse/mod.rs
+++ b/src/libsyntax/parse/mod.rs
@@ -338,7 +338,6 @@ mod test {
     use extra::serialize::Encodable;
     use extra;
     use std::io;
-    use std::io::Decorator;
     use std::io::mem::MemWriter;
     use std::str;
     use codemap::{Span, BytePos, Spanned};
@@ -356,7 +355,7 @@ mod test {
         let mut writer = MemWriter::new();
         let mut encoder = extra::json::Encoder::new(&mut writer as &mut io::Writer);
         val.encode(&mut encoder);
-        str::from_utf8_owned(writer.inner())
+        str::from_utf8_owned(writer.unwrap())
     }
 
     // produce a codemap::span