diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-09-16 23:34:40 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-09-18 11:07:22 -0700 |
| commit | 817576ee7001244da68a4ee315ebdc1163d4e648 (patch) | |
| tree | ffa6ecd790e899105cfa3f2c2da1b4520a062f72 /src/libstd/sys.rs | |
| parent | e02313a172acca34bd29e10cdd10f7495664694e (diff) | |
| download | rust-817576ee7001244da68a4ee315ebdc1163d4e648.tar.gz rust-817576ee7001244da68a4ee315ebdc1163d4e648.zip | |
Register new snapshots
Diffstat (limited to 'src/libstd/sys.rs')
| -rw-r--r-- | src/libstd/sys.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libstd/sys.rs b/src/libstd/sys.rs index 3d35de0f898..c315c3f9dfc 100644 --- a/src/libstd/sys.rs +++ b/src/libstd/sys.rs @@ -14,8 +14,6 @@ use c_str::ToCStr; use cast; -#[cfg(stage0)] -use io; use libc; use libc::{c_char, size_t}; use repr; @@ -92,7 +90,6 @@ pub fn refcount<T>(t: @T) -> uint { } } -#[cfg(not(stage0))] pub fn log_str<T>(t: &T) -> ~str { use rt::io; use rt::io::Decorator; @@ -101,12 +98,6 @@ pub fn log_str<T>(t: &T) -> ~str { repr::write_repr(&mut result as &mut io::Writer, t); str::from_utf8_owned(result.inner()) } -#[cfg(stage0)] -pub fn log_str<T>(t: &T) -> ~str { - do io::with_str_writer |w| { - repr::write_repr(w, t) - } -} /// Trait for initiating task failure. pub trait FailWithCause { |
