Skip to content

Commit e47ee77

Browse files
committed
wip
1 parent 7270fad commit e47ee77

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
lines changed
File renamed without changes.

src/libcore/rt/io/file.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,10 @@
99
// except according to those terms.
1010

1111
use prelude::*;
12-
use super::misc::PathLike;
12+
use super::support::PathLike;
1313
use super::{Reader, Writer, Seek, Close};
1414
use super::{IoError, SeekStyle};
1515

16-
/// Open a file with the default FileMode and FileAccess
17-
/// # XXX are there sane defaults here?
18-
pub fn open_file<P: PathLike>(_path: &P) -> FileStream { fail!() }
19-
2016
/// # XXX
2117
/// * Ugh, this is ridiculous. What is the best way to represent these options?
2218
enum FileMode {

src/libcore/rt/io/mod.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ pub use self::stdio::stderr;
104104
pub use self::stdio::print;
105105
pub use self::stdio::println;
106106

107-
pub use self::file::open_file;
108107
pub use self::file::FileStream;
109108
pub use self::net::Listener;
110109
pub use self::net::ip::IpAddr;
@@ -113,9 +112,9 @@ pub use self::net::tcp::TcpStream;
113112
pub use self::net::udp::UdpStream;
114113

115114
// Some extension traits that all Readers and Writers get.
116-
pub use self::util::ReaderUtil;
117-
pub use self::util::ReaderByteConversions;
118-
pub use self::util::WriterByteConversions;
115+
pub use self::extensions::ReaderUtil;
116+
pub use self::extensions::ReaderByteConversions;
117+
pub use self::extensions::WriterByteConversions;
119118

120119
/// Synchronous, non-blocking file I/O.
121120
pub mod file;
@@ -140,10 +139,10 @@ pub mod flate;
140139
pub mod comm_adapters;
141140

142141
/// Extension traits
143-
mod util;
142+
mod extensions;
144143

145144
/// Non-I/O things needed by the I/O module
146-
mod misc;
145+
mod support;
147146

148147
/// Thread-blocking implementations
149148
pub mod native {

src/libcore/rt/io/net/unix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use prelude::*;
1212
use super::*;
1313
use super::super::*;
14-
use super::super::misc::PathLike;
14+
use super::super::support::PathLike;
1515

1616
pub struct UnixStream;
1717

File renamed without changes.

0 commit comments

Comments
 (0)