Skip to content

Commit 11a10c7

Browse files
committed
Remove redundant imports in lib (rustc doesn't like 'std' as a synonym for root within std.rc anyway)
1 parent ec22fe9 commit 11a10c7

File tree

11 files changed

+2
-29
lines changed

11 files changed

+2
-29
lines changed

src/lib/_int.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import std.sys;
21

32
fn add(int x, int y) -> int { ret x + y; }
43
fn sub(int x, int y) -> int { ret x - y; }

src/lib/_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import rustrt.sbuf;
22

3-
import std._vec.rustrt.vbuf;
3+
import _vec.rustrt.vbuf;
44

55
native "rust" mod rustrt {
66
type sbuf;

src/lib/_uint.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import std.sys;
21

32
fn add(uint x, uint y) -> uint { ret x + y; }
43
fn sub(uint x, uint y) -> uint { ret x - y; }

src/lib/_vec.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import vbuf = rustrt.vbuf;
2-
import std.option;
32

43
type operator2[T,U,V] = fn(&T, &U) -> V;
54

src/lib/bitv.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
import std._uint;
2-
import std._int;
3-
import std._vec;
4-
51
// FIXME: With recursive object types, we could implement binary methods like
62
// union, intersection, and difference. At that point, we could write
73
// an optimizing version of this module that produces a different obj

src/lib/dbg.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
* logging.
66
*/
77

8-
import std._vec;
9-
108
// FIXME: handle 64-bit case.
119
const uint const_refcount = 0x7bad_face_u;
1210

src/lib/deque.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
* A deque, for fun. Untested as of yet. Likely buggy.
33
*/
44

5-
import std.option;
6-
import std._vec;
7-
import std._int;
8-
95
type t[T] = obj {
106
fn size() -> uint;
117

src/lib/io.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import std.os.libc;
2-
import std._str;
3-
import std._vec;
4-
1+
import os.libc;
52

63
type stdio_reader = state obj {
74
fn getc() -> int;

src/lib/list.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
import std.option;
31
import option.some;
42
import option.none;
53

src/lib/map.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
* use, but useful as a stress test for rustboot.
44
*/
55

6-
import std._int;
7-
import std.sys;
8-
import std.option;
9-
import std._vec;
10-
11-
126
type hashfn[K] = fn(&K) -> uint;
137
type eqfn[K] = fn(&K, &K) -> bool;
148

src/lib/sha1.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
* point this will want to be rewritten.
55
*/
66

7-
import std._vec;
8-
import std._str;
9-
107
export sha1;
118
export mk_sha1;
129

0 commit comments

Comments
 (0)