From 9a075f264a1024a3c03edc033be59971ad590171 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 13 Mar 2013 18:21:47 -0700 Subject: [PATCH] core: Rename rt::io to rt::rtio This is an internal interface. I want to use rt::io for public interfaces. --- src/libcore/rt/mod.rs | 2 +- src/libcore/rt/{io.rs => rtio.rs} | 0 src/libcore/rt/sched.rs | 2 +- src/libcore/rt/uv.rs | 2 +- src/libcore/rt/uvio.rs | 4 +--- 5 files changed, 4 insertions(+), 6 deletions(-) rename src/libcore/rt/{io.rs => rtio.rs} (100%) diff --git a/src/libcore/rt/mod.rs b/src/libcore/rt/mod.rs index 556431e9315..bc0efc01fbb 100644 --- a/src/libcore/rt/mod.rs +++ b/src/libcore/rt/mod.rs @@ -30,7 +30,7 @@ macro_rules! rtdebug ( ) mod sched; -mod io; +mod rtio; pub mod uvll; mod uvio; mod uv; diff --git a/src/libcore/rt/io.rs b/src/libcore/rt/rtio.rs similarity index 100% rename from src/libcore/rt/io.rs rename to src/libcore/rt/rtio.rs diff --git a/src/libcore/rt/sched.rs b/src/libcore/rt/sched.rs index 74867dd7f12..f47f86fd5fd 100644 --- a/src/libcore/rt/sched.rs +++ b/src/libcore/rt/sched.rs @@ -16,7 +16,7 @@ use super::work_queue::WorkQueue; use super::stack::{StackPool, StackSegment}; -use super::io::{EventLoop, EventLoopObject}; +use super::rtio::{EventLoop, EventLoopObject}; use super::context::Context; use tls = super::thread_local_storage; diff --git a/src/libcore/rt/uv.rs b/src/libcore/rt/uv.rs index 3bbd54b306f..cc9e2fe8a7a 100644 --- a/src/libcore/rt/uv.rs +++ b/src/libcore/rt/uv.rs @@ -45,7 +45,7 @@ use sys::size_of; use super::uvll; use super::uvll::*; -use super::io::{IpAddr, Ipv4, Ipv6}; +use super::rtio::{IpAddr, Ipv4, Ipv6}; use unstable::finally::Finally; #[cfg(test)] use unstable::run_in_bare_thread; diff --git a/src/libcore/rt/uvio.rs b/src/libcore/rt/uvio.rs index 53156ccc73d..1806da55efa 100644 --- a/src/libcore/rt/uvio.rs +++ b/src/libcore/rt/uvio.rs @@ -12,13 +12,11 @@ use result::*; use super::uv::*; -use super::io::*; +use super::rtio::*; use ops::Drop; use cell::{Cell, empty_cell}; use cast::transmute; -use super::StreamObject; use super::sched::Scheduler; -use super::IoFactoryObject; #[cfg(test)] use super::sched::Task; #[cfg(test)] use unstable::run_in_bare_thread;