diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-03-08 18:21:49 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-03-27 10:14:50 -0700 |
| commit | bb9172d7b512c36f34d34b024640f030d1fde2eb (patch) | |
| tree | 0e4ea18ae30a12954db6b9fbe95f62222ade9301 /src/libsyntax | |
| parent | bdd24b2a56e8bf6b952bd8880364fb0a57c2c540 (diff) | |
| download | rust-bb9172d7b512c36f34d34b024640f030d1fde2eb.tar.gz rust-bb9172d7b512c36f34d34b024640f030d1fde2eb.zip | |
Fix fallout of removing default bounds
This is all purely fallout of getting the previous commit to compile.
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 e19c4c3026a..faeb7b4e0f2 100644 --- a/src/libsyntax/diagnostic.rs +++ b/src/libsyntax/diagnostic.rs @@ -79,7 +79,7 @@ impl SpanHandler { // others log errors for later reporting. pub struct Handler { err_count: Cell<uint>, - emit: RefCell<~Emitter>, + emit: RefCell<~Emitter:Send>, } impl Handler { @@ -148,7 +148,7 @@ pub fn default_handler() -> Handler { mk_handler(~EmitterWriter::stderr()) } -pub fn mk_handler(e: ~Emitter) -> Handler { +pub fn mk_handler(e: ~Emitter:Send) -> Handler { Handler { err_count: Cell::new(0), emit: RefCell::new(e), @@ -221,7 +221,7 @@ pub struct EmitterWriter { enum Destination { Terminal(term::Terminal<io::stdio::StdWriter>), - Raw(~Writer), + Raw(~Writer:Send), } impl EmitterWriter { @@ -238,7 +238,7 @@ impl EmitterWriter { } } - pub fn new(dst: ~Writer) -> EmitterWriter { + pub fn new(dst: ~Writer:Send) -> EmitterWriter { EmitterWriter { dst: Raw(dst) } } } |
