about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-16 11:41:30 -0700
committerbors <bors@rust-lang.org>2014-05-16 11:41:30 -0700
commit25c54226c3e7dd6f59cf2e92238a4d79d8b0128d (patch)
tree3625f520d90d08eeb4d5cf2e4e03b971fb09d954 /src/libsyntax
parentbbd034c3a6e0325da0cb743cab007d69a736557a (diff)
parent3da99c5d8a44f3d79eb02e76c30df2b20d2df38c (diff)
downloadrust-25c54226c3e7dd6f59cf2e92238a4d79d8b0128d.tar.gz
rust-25c54226c3e7dd6f59cf2e92238a4d79d8b0128d.zip
auto merge of #13401 : cmr/rust/docs, r=brson
Adds docs where previously there were no docs. Also adds windows support to libterm.
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/diagnostic.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/diagnostic.rs b/src/libsyntax/diagnostic.rs
index 94132988d97..1a07393f9fc 100644
--- a/src/libsyntax/diagnostic.rs
+++ b/src/libsyntax/diagnostic.rs
@@ -259,7 +259,7 @@ pub struct EmitterWriter {
 }
 
 enum Destination {
-    Terminal(term::Terminal<io::stdio::StdWriter>),
+    Terminal(Box<term::Terminal<Box<Writer:Send>>:Send>),
     Raw(Box<Writer:Send>),
 }
 
@@ -274,9 +274,9 @@ impl EmitterWriter {
         };
 
         if use_color {
-            let dst = match term::Terminal::new(stderr.unwrap()) {
-                Ok(t) => Terminal(t),
-                Err(..) => Raw(box io::stderr()),
+            let dst = match term::stderr() {
+                Some(t) => Terminal(t),
+                None    => Raw(box stderr),
             };
             EmitterWriter { dst: dst }
         } else {