Skip to content

Commit efb5f87

Browse files
committed
libcore: Remove a few possibly-cyclic imports in an effort to unbreak the tree on Linux
1 parent b889913 commit efb5f87

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/libcore/io.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,9 +1204,11 @@ pub fn read_whole_file(file: &Path) -> Result<~[u8], ~str> {
12041204
// fsync related
12051205

12061206
pub mod fsync {
1207-
use prelude::*;
12081207
use io::{FILERes, FdRes, fd_t};
1208+
use kinds::Copy;
12091209
use libc;
1210+
use ops::Drop;
1211+
use option::{None, Option, Some};
12101212
use os;
12111213

12121214
pub enum Level {

src/libcore/libc.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,6 @@ pub mod types {
230230
pub type uintptr_t = uint;
231231
}
232232
pub mod posix88 {
233-
use prelude::*;
234-
235233
pub type off_t = i32;
236234
pub type dev_t = u64;
237235
pub type ino_t = u32;

0 commit comments

Comments
 (0)