diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-08-08 13:46:40 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-08-28 23:00:46 -0700 |
| commit | 97f61e7bbeca5c9524126ca75670fc45d1b1a951 (patch) | |
| tree | 512a4af334395f187b7800b5fd8d5b6358285146 /src/libstd/logging.rs | |
| parent | 578e68047736167239c52fa1aba0347011ff1bc3 (diff) | |
Remove @io::Writer from sys/repr/reflect
At the same time, this updates the TyVisitor to use a mutable self because it's probably going to be mutating state as it goes along anyway.
Diffstat (limited to 'src/libstd/logging.rs')
| -rw-r--r-- | src/libstd/logging.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/libstd/logging.rs b/src/libstd/logging.rs index 215067ea729..a885a4f7227 100644 --- a/src/libstd/logging.rs +++ b/src/libstd/logging.rs @@ -41,16 +41,10 @@ pub fn console_off() { #[lang="log_type"] #[allow(missing_doc)] pub fn log_type<T>(_level: u32, object: &T) { - use io; - use repr; - use str; - - let bytes = do io::with_bytes_writer |writer| { - repr::write_repr(writer, object); - }; + use sys; // XXX: Bad allocation - let msg = str::from_bytes(bytes); + let msg = sys::log_str(object); newsched_log_str(msg); } |
