diff options
| author | bors <bors@rust-lang.org> | 2014-05-16 11:41:30 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-05-16 11:41:30 -0700 |
| commit | 25c54226c3e7dd6f59cf2e92238a4d79d8b0128d (patch) | |
| tree | 3625f520d90d08eeb4d5cf2e4e03b971fb09d954 /src/libsyntax | |
| parent | bbd034c3a6e0325da0cb743cab007d69a736557a (diff) | |
| parent | 3da99c5d8a44f3d79eb02e76c30df2b20d2df38c (diff) | |
| download | rust-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.rs | 8 |
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 { |
