Skip to content

Commit abbd86f

Browse files
committed
Merge pull request #1334 from boggle/kmath
preparing for removing math from std
2 parents 539cfe8 + e1a9668 commit abbd86f

File tree

9 files changed

+14
-9
lines changed

9 files changed

+14
-9
lines changed

src/libstd/comm.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Example:
2929
import sys;
3030
import task;
3131

32+
import core::ctypes;
33+
3234
export send;
3335
export recv;
3436
export chan;

src/libstd/fs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Module: fs
44
File system manipulation
55
*/
66

7+
import core::ctypes;
78
import core::vec;
89
import core::option;
910
import os;

src/libstd/io.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Basic input/output
66

77
import core::option;
88
import core::result;
9-
import ctypes::fd_t;
10-
import ctypes::c_int;
9+
import core::ctypes::fd_t;
10+
import core::ctypes::c_int;
1111

1212
#[abi = "cdecl"]
1313
native mod rustrt {

src/libstd/linux_os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ TODO: Restructure and document
55
*/
66

77
import core::option;
8-
import ctypes::*;
8+
import core::ctypes::*;
99

1010
export libc;
1111
export libc_constants;

src/libstd/macos_os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import core::option;
2-
import ctypes::*;
2+
import core::ctypes::*;
33

44
export libc;
55
export libc_constants;

src/libstd/math.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import f32 = math_f32;
2323

2424
// These two must match in width according to architecture
2525

26-
import ctypes::m_float;
27-
import ctypes::c_int;
28-
import ptr;
26+
import core::mtypes::m_float;
27+
import core::ctypes::c_int;
28+
import core::ptr;
2929
import m_float = math_f64;
3030

3131
/*

src/libstd/rope.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ mod node {
11031103
right : right,
11041104
char_len: char_len(left) + char_len(right),
11051105
byte_len: byte_len(left) + byte_len(right),
1106-
height: math::max(height(left), height(right)) + 1u
1106+
height: float::max(height(left), height(right)) + 1u
11071107
})
11081108
}
11091109

src/libstd/uv.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ export loop_new, loop_delete, default_loop, run, unref;
1212
export idle_init, idle_start;
1313
export idle_new;
1414

15+
import core::ctypes;
16+
1517
#[link_name = "rustrt"]
1618
native mod uv {
1719
fn rust_uv_loop_new() -> *loop_t;

src/libstd/win32_os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import core::option;
2-
import ctypes::*;
2+
import core::ctypes::*;
33

44
#[abi = "cdecl"]
55
#[link_name = ""] // FIXME remove after #[nolink] is snapshotted

0 commit comments

Comments
 (0)