Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test: "import" -> "use"

  • Loading branch information...
commit f686896f60d901fd7f97add72fbc047691027baa 1 parent 47dac47
@pcwalton pcwalton authored
Showing with 409 additions and 562 deletions.
  1. +1 −1  src/test/auxiliary/cci_capture_clause.rs
  2. +2 −2 src/test/auxiliary/cci_class_cast.rs
  3. +1 −1  src/test/auxiliary/cci_nested_lib.rs
  4. +1 −1  src/test/auxiliary/crate-method-reexport-grrrrrrr2.rs
  5. +1 −1  src/test/auxiliary/issue-2196-c.rs
  6. +3 −3 src/test/auxiliary/issue-2631-a.rs
  7. +2 −2 src/test/auxiliary/issue2378b.rs
  8. +1 −1  src/test/auxiliary/issue_2242_b.rs
  9. +1 −1  src/test/auxiliary/issue_2242_c.rs
  10. +1 −1  src/test/auxiliary/issue_2316_b.rs
  11. +1 −1  src/test/auxiliary/test_comm.rs
  12. +4 −5 src/test/bench/core-map.rs
  13. +4 −4 src/test/bench/core-std.rs
  14. +2 −2 src/test/bench/core-vec-append.rs
  15. +11 −11 src/test/bench/graph500-bfs.rs
  16. +3 −3 src/test/bench/msgsend-pipes-shared.rs
  17. +3 −3 src/test/bench/msgsend-pipes.rs
  18. +3 −3 src/test/bench/msgsend-ring-mutex-arcs.rs
  19. +3 −3 src/test/bench/msgsend-ring-pipes.rs
  20. +3 −3 src/test/bench/msgsend-ring-rw-arcs.rs
  21. +3 −3 src/test/bench/msgsend-ring.rs
  22. +2 −2 src/test/bench/msgsend.rs
  23. +2 −2 src/test/bench/pingpong.rs
  24. +2 −2 src/test/bench/shootout-binarytrees.rs
  25. +3 −3 src/test/bench/shootout-chameneos-redux.rs
  26. +0 −2  src/test/bench/shootout-fannkuchredux.rs
  27. +1 −5 src/test/bench/shootout-fasta.rs
  28. +5 −5 src/test/bench/shootout-k-nucleotide-pipes.rs
  29. +4 −4 src/test/bench/shootout-k-nucleotide.rs
  30. +2 −2 src/test/bench/shootout-mandelbrot.rs
  31. +10 −10 src/test/bench/shootout-pfib.rs
  32. +3 −3 src/test/bench/std-smallintmap.rs
  33. +2 −2 src/test/bench/sudoku.rs
  34. +2 −2 src/test/bench/task-perf-alloc-unwind.rs
  35. +13 −19 src/test/bench/task-perf-word-count-generic.rs
  36. +1 −1  src/test/compile-fail/ambig_impl_2_exe.rs
  37. +1 −1  src/test/compile-fail/arc-cant-nest-rw-arc-3177.rs
  38. +1 −1  src/test/compile-fail/arc-rw-cond-shouldnt-escape.rs
  39. +1 −1  src/test/compile-fail/arc-rw-read-mode-shouldnt-escape.rs
  40. +1 −1  src/test/compile-fail/arc-rw-state-shouldnt-escape.rs
  41. +1 −1  src/test/compile-fail/arc-rw-write-mode-cond-shouldnt-escape.rs
  42. +1 −1  src/test/compile-fail/arc-rw-write-mode-shouldnt-escape.rs
  43. +0 −1  src/test/compile-fail/bad-module.rs
  44. +2 −2 src/test/compile-fail/borrowck-borrowed-uniq-rvalue.rs
  45. +1 −1  src/test/compile-fail/export-import.rs
  46. +2 −2 src/test/compile-fail/for-loop-decl.rs
  47. +1 −1  src/test/compile-fail/fully-qualified-type-name4.rs
  48. +1 −1  src/test/compile-fail/import-from-missing.rs
  49. +1 −1  src/test/compile-fail/import-from-path.rs
  50. +1 −1  src/test/compile-fail/import-from-rename.rs
  51. +1 −1  src/test/compile-fail/import-glob-0.rs
  52. +1 −1  src/test/compile-fail/import-glob-export.rs
  53. +1 −1  src/test/compile-fail/import-glob-path.rs
  54. +1 −1  src/test/compile-fail/import-glob-rename.rs
  55. +1 −1  src/test/compile-fail/import-loop.rs
  56. +2 −2 src/test/compile-fail/import.rs
  57. +1 −1  src/test/compile-fail/import2.rs
  58. +1 −1  src/test/compile-fail/import3.rs
  59. +1 −1  src/test/compile-fail/issue-1697.rs
  60. +1 −1  src/test/compile-fail/issue-2123.rs
  61. +1 −1  src/test/compile-fail/issue-2590.rs
  62. +1 −1  src/test/compile-fail/issue-2937.rs
  63. +1 −2  src/test/compile-fail/issue-511.rs
  64. +3 −3 src/test/compile-fail/map-types.rs
  65. +1 −1  src/test/compile-fail/name-clash-nullary.rs
  66. +2 −2 src/test/compile-fail/no-capture-arc.rs
  67. +2 −2 src/test/compile-fail/no-reuse-move-arc.rs
  68. +1 −2  src/test/compile-fail/pattern-tyvar-2.rs
  69. +1 −2  src/test/compile-fail/pattern-tyvar.rs
  70. +1 −1  src/test/compile-fail/private-method-cross-crate.rs
  71. +1 −1  src/test/compile-fail/private-struct-field-cross-crate.rs
  72. +6 −6 src/test/compile-fail/qquote-1.rs
  73. +6 −6 src/test/compile-fail/qquote-2.rs
  74. +0 −1  src/test/compile-fail/spawn-non-nil-fn.rs
  75. +1 −1  src/test/compile-fail/sync-cond-shouldnt-escape.rs
  76. +1 −1  src/test/compile-fail/sync-rwlock-cond-shouldnt-escape.rs
  77. +1 −1  src/test/compile-fail/sync-rwlock-read-mode-shouldnt-escape.rs
  78. +1 −1  src/test/compile-fail/sync-rwlock-write-mode-cond-shouldnt-escape.rs
  79. +1 −1  src/test/compile-fail/sync-rwlock-write-mode-shouldnt-escape.rs
  80. +1 −1  src/test/compile-fail/unused-imports-warn.rs
  81. +1 −1  src/test/compile-fail/view-items-at-top.rs
  82. +0 −1  src/test/run-fail/fail-main.rs
  83. +0 −1  src/test/run-fail/for-each-loop-fail.rs
  84. +1 −1  src/test/run-fail/issue-2156.rs
  85. +1 −1  src/test/run-fail/issue-2444.rs
  86. +2 −3 src/test/run-fail/linked-failure.rs
  87. +3 −4 src/test/run-fail/linked-failure2.rs
  88. +2 −3 src/test/run-fail/linked-failure3.rs
  89. +3 −4 src/test/run-fail/linked-failure4.rs
  90. +4 −4 src/test/run-fail/port-type.rs
  91. +0 −1  src/test/run-fail/spawnfail.rs
  92. +0 −2  src/test/run-fail/task-comm-recv-block.rs
  93. +2 −3 src/test/run-fail/unwind-misc-1.rs
  94. +1 −3 src/test/run-fail/zip-different-lengths.rs
  95. +5 −6 src/test/run-pass-fulldeps/issue-1926.rs
  96. +6 −6 src/test/run-pass-fulldeps/qquote.rs
  97. +0 −2  src/test/run-pass/acyclic-unwind.rs
  98. +1 −2  src/test/run-pass/alias-uninit-value.rs
  99. +0 −1  src/test/run-pass/alt-join.rs
  100. +1 −1  src/test/run-pass/alt-pattern-drop.rs
  101. +1 −1  src/test/run-pass/anon-extern-mod-cross-crate-2.rs
  102. +4 −4 src/test/run-pass/auto_serialize.rs
  103. +4 −5 src/test/run-pass/basic-1.rs
  104. +4 −6 src/test/run-pass/basic-2.rs
  105. +3 −5 src/test/run-pass/basic.rs
  106. +1 −1  src/test/run-pass/bind-by-move.rs
  107. +1 −3 src/test/run-pass/binops.rs
  108. +1 −1  src/test/run-pass/bitv-perf-test.rs
  109. +0 −1  src/test/run-pass/block-vec-map2.rs
  110. +1 −1  src/test/run-pass/borrowck-borrow-from-expr-block.rs
  111. +0 −1  src/test/run-pass/c-stack-returning-int64.rs
  112. +1 −1  src/test/run-pass/cci_borrow.rs
  113. +1 −1  src/test/run-pass/cci_capture_clause.rs
  114. +1 −1  src/test/run-pass/cci_impl_exe.rs
  115. +1 −1  src/test/run-pass/cci_nested_exe.rs
  116. +1 −1  src/test/run-pass/cci_no_inline_exe.rs
  117. +4 −6 src/test/run-pass/chan-leak.rs
  118. +0 −1  src/test/run-pass/child-outlives-parent.rs
  119. +2 −2 src/test/run-pass/class-cast-to-trait-cross-crate-2.rs
  120. +2 −2 src/test/run-pass/class-cast-to-trait-cross-crate.rs
  121. +1 −1  src/test/run-pass/class-exports.rs
  122. +1 −1  src/test/run-pass/class-impl-parameterized-trait.rs
  123. +1 −1  src/test/run-pass/class-impl-very-parameterized-trait.rs
  124. +1 −1  src/test/run-pass/class-implement-trait-cross-crate.rs
  125. +3 −3 src/test/run-pass/class-implements-multiple-traits.rs
  126. +1 −1  src/test/run-pass/class-method-cross-crate.rs
  127. +1 −1  src/test/run-pass/class-methods-cross-crate.rs
  128. +1 −1  src/test/run-pass/class-poly-methods-cross-crate.rs
  129. +2 −2 src/test/run-pass/class-separate-impl.rs
  130. +1 −1  src/test/run-pass/class-trait-bounded-param.rs
  131. +1 −1  src/test/run-pass/classes-cross-crate.rs
  132. +1 −1  src/test/run-pass/classes-simple-cross-crate.rs
  133. +0 −1  src/test/run-pass/clone-with-exterior.rs
  134. +3 −5 src/test/run-pass/comm.rs
  135. +1 −1  src/test/run-pass/companionmod-src/b.rs
  136. +1 −1  src/test/run-pass/companionmod-src/d.rs
  137. +1 −1  src/test/run-pass/core-export-f64-sqrt.rs
  138. +4 −4 src/test/run-pass/decl-with-recv.rs
  139. +1 −1  src/test/run-pass/dvec-test.rs
  140. +2 −2 src/test/run-pass/export-multi.rs
  141. +0 −1  src/test/run-pass/float-nan.rs
  142. +0 −2  src/test/run-pass/foreign-fn-linkname.rs
  143. +9 −13 src/test/run-pass/hashmap-memory.rs
  144. +1 −1  src/test/run-pass/import-from.rs
  145. +2 −2 src/test/run-pass/import-glob-0.rs
  146. +1 −1  src/test/run-pass/import-glob-1.rs
  147. +1 −1  src/test/run-pass/import-glob-crate.rs
  148. +1 −1  src/test/run-pass/import-trailing-comma.rs
  149. +1 −1  src/test/run-pass/import2.rs
  150. +2 −2 src/test/run-pass/import3.rs
  151. +1 −1  src/test/run-pass/import4.rs
  152. +1 −1  src/test/run-pass/import5.rs
  153. +2 −2 src/test/run-pass/import6.rs
  154. +2 −2 src/test/run-pass/import7.rs
  155. +2 −2 src/test/run-pass/import8.rs
  156. +1 −1  src/test/run-pass/infinite-loops.rs
  157. +1 −1  src/test/run-pass/intrinsic-atomics-cc.rs
  158. +1 −1  src/test/run-pass/issue-1112.rs
  159. +2 −2 src/test/run-pass/issue-1696.rs
  160. +2 −2 src/test/run-pass/issue-2101.rs
  161. +1 −1  src/test/run-pass/issue-2196.rs
  162. +2 −2 src/test/run-pass/issue-2214.rs
  163. +1 −1  src/test/run-pass/issue-2242-d.rs
  164. +1 −1  src/test/run-pass/issue-2316-c.rs
  165. +2 −2 src/test/run-pass/issue-2383.rs
  166. +1 −1  src/test/run-pass/issue-2445.rs
  167. +1 −1  src/test/run-pass/issue-2472.rs
  168. +1 −1  src/test/run-pass/issue-2526-a.rs
  169. +1 −2  src/test/run-pass/issue-2611.rs
  170. +3 −4 src/test/run-pass/issue-2631-b.rs
  171. +1 −1  src/test/run-pass/issue-2723-b.rs
  172. +1 −1  src/test/run-pass/issue-2804-2.rs
  173. +2 −3 src/test/run-pass/issue-2804.rs
  174. +1 −1  src/test/run-pass/issue-3012-2.rs
  175. +1 −1  src/test/run-pass/issue-3176.rs
  176. +0 −1  src/test/run-pass/issue-506.rs
  177. +4 −6 src/test/run-pass/issue-507.rs
  178. +4 −7 src/test/run-pass/issue-687.rs
  179. +2 −2 src/test/run-pass/issue-783.rs
  180. +2 −2 src/test/run-pass/issue2378c.rs
  181. +4 −6 src/test/run-pass/ivec-tag.rs
  182. +1 −2  src/test/run-pass/lazychan.rs
  183. +1 −1  src/test/run-pass/log-knows-the-names-of-variants-in-std.rs
  184. +0 −3  src/test/run-pass/lots-a-fail.rs
  185. +0 −2  src/test/run-pass/many.rs
  186. +0 −1  src/test/run-pass/morestack5.rs
  187. +0 −1  src/test/run-pass/move-3-unique.rs
  188. +0 −1  src/test/run-pass/move-3.rs
  189. +0 −1  src/test/run-pass/move-4-unique.rs
  190. +0 −1  src/test/run-pass/move-4.rs
  191. +2 −3 src/test/run-pass/nested-pattern.rs
  192. +1 −1  src/test/run-pass/non-boolean-pure-fns.rs
  193. +1 −1  src/test/run-pass/pipe-bank-proto.rs
  194. +3 −3 src/test/run-pass/pipe-detect-term.rs
  195. +2 −2 src/test/run-pass/pipe-peek.rs
  196. +2 −2 src/test/run-pass/pipe-presentation-examples.rs
  197. +3 −3 src/test/run-pass/pipe-select.rs
  198. +3 −3 src/test/run-pass/pipe-sleep.rs
  199. +1 −1  src/test/run-pass/placement-new-arena.rs
  200. +2 −2 src/test/run-pass/reflect-visit-data.rs
  201. +1 −1  src/test/run-pass/reflect-visit-type.rs
  202. +2 −2 src/test/run-pass/regions-mock-trans-impls.rs
  203. +1 −1  src/test/run-pass/regions-mock-trans.rs
  204. +1 −1  src/test/run-pass/ret-break-cont-in-block.rs
  205. +4 −7 src/test/run-pass/rt-circular-buffer.rs
  206. +1 −1  src/test/run-pass/rt-sched-1.rs
  207. +0 −3  src/test/run-pass/send-iloop.rs
  208. +2 −2 src/test/run-pass/send-resource.rs
  209. +3 −3 src/test/run-pass/send-type-inference.rs
  210. +2 −2 src/test/run-pass/sendfn-deep-copy.rs
  211. +2 −2 src/test/run-pass/sendfn-generic-fn.rs
  212. +2 −2 src/test/run-pass/sendfn-spawn-with-fn-arg.rs
  213. +2 −3 src/test/run-pass/shape_intrinsic_tag_then_rec.rs
  214. +1 −1  src/test/run-pass/shebang.rs
  215. +1 −2  src/test/run-pass/spawn-fn.rs
  216. +0 −3  src/test/run-pass/spawn-types.rs
  217. +0 −1  src/test/run-pass/spawn.rs
  218. +1 −1  src/test/run-pass/spawn2.rs
  219. +1 −1  src/test/run-pass/static-impl.rs
  220. +2 −2 src/test/run-pass/static-method-xcrate.rs
  221. +0 −1  src/test/run-pass/str-append.rs
  222. +0 −1  src/test/run-pass/str-multiline.rs
  223. +0 −1  src/test/run-pass/string-self-append.rs
  224. +0 −1  src/test/run-pass/syntax-extension-fmt.rs
  225. +1 −1  src/test/run-pass/tag-exports.rs
  226. +2 −4 src/test/run-pass/task-comm-0.rs
  227. +0 −2  src/test/run-pass/task-comm-10.rs
  228. +0 −2  src/test/run-pass/task-comm-11.rs
  229. +0 −1  src/test/run-pass/task-comm-12.rs
  230. +1 −3 src/test/run-pass/task-comm-13.rs
  231. +0 −1  src/test/run-pass/task-comm-14.rs
  232. +0 −1  src/test/run-pass/task-comm-15.rs
  233. +4 −5 src/test/run-pass/task-comm-16.rs
  234. +0 −1  src/test/run-pass/task-comm-17.rs
  235. +3 −5 src/test/run-pass/task-comm-3.rs
  236. +1 −2  src/test/run-pass/task-comm-4.rs
  237. +0 −1  src/test/run-pass/task-comm-5.rs
  238. +3 −4 src/test/run-pass/task-comm-6.rs
  239. +0 −1  src/test/run-pass/task-comm-7.rs
  240. +0 −1  src/test/run-pass/task-comm-9.rs
  241. +0 −1  src/test/run-pass/task-comm-chan-cleanup.rs
  242. +0 −1  src/test/run-pass/task-comm-chan-cleanup2.rs
  243. +0 −1  src/test/run-pass/task-comm-chan-cleanup3.rs
  244. +0 −3  src/test/run-pass/task-comm-chan-cleanup4.rs
  245. +0 −1  src/test/run-pass/task-comm-chan-nil.rs
  246. +5 −7 src/test/run-pass/task-comm.rs
  247. +1 −3 src/test/run-pass/task-compare.rs
  248. +0 −1  src/test/run-pass/task-killjoin-rsrc.rs
  249. +0 −1  src/test/run-pass/task-killjoin.rs
  250. +0 −1  src/test/run-pass/task-life-0.rs
  251. +0 −2  src/test/run-pass/test-ignore-cfg.rs
  252. +0 −1  src/test/run-pass/threads.rs
  253. +1 −1  src/test/run-pass/trait-to-str.rs
  254. +0 −1  src/test/run-pass/trait_mix/trait-mix.rs
  255. +1 −1  src/test/run-pass/trivial-message.rs
  256. +1 −1  src/test/run-pass/type-sizes.rs
  257. +0 −1  src/test/run-pass/unify-return-ty.rs
  258. +1 −1  src/test/run-pass/unique-copy-box.rs
  259. +0 −3  src/test/run-pass/unique-send-2.rs
  260. +0 −2  src/test/run-pass/unique-send.rs
  261. +0 −1  src/test/run-pass/unwind-box.rs
  262. +0 −2  src/test/run-pass/unwind-resource.rs
  263. +0 −2  src/test/run-pass/unwind-resource2.rs
  264. +0 −1  src/test/run-pass/unwind-unique.rs
  265. +2 −2 src/test/run-pass/use.rs
  266. +0 −2  src/test/run-pass/utf8_chars.rs
  267. +0 −1  src/test/run-pass/vec-self-append.rs
  268. +1 −2  src/test/run-pass/yield.rs
  269. +1 −2  src/test/run-pass/yield1.rs
  270. +1 −3 src/test/run-pass/zip-same-length.rs
View
2  src/test/auxiliary/cci_capture_clause.rs
@@ -1,6 +1,6 @@
export foo;
-import comm::*;
+use comm::*;
fn foo<T: send copy>(x: T) -> Port<T> {
let p = Port();
View
4 src/test/auxiliary/cci_class_cast.rs
@@ -1,5 +1,5 @@
-import to_str::*;
-import to_str::ToStr;
+use to_str::*;
+use to_str::ToStr;
mod kitty {
View
2  src/test/auxiliary/cci_nested_lib.rs
@@ -1,4 +1,4 @@
-import dvec::DVec;
+use dvec::DVec;
type entry<A,B> = {key: A, value: B};
type alist<A,B> = { eq_fn: fn@(A,A) -> bool, data: DVec<entry<A,B>> };
View
2  src/test/auxiliary/crate-method-reexport-grrrrrrr2.rs
@@ -2,7 +2,7 @@
export rust;
-import name_pool::add;
+use name_pool::add;
mod name_pool {
View
2  src/test/auxiliary/issue-2196-c.rs
@@ -1,4 +1,4 @@
-import b::d;
+use b::d;
type t = uint;
View
6 src/test/auxiliary/issue-2631-a.rs
@@ -3,9 +3,9 @@
use std;
-import dvec::*;
-import dvec::DVec;
-import std::map::hashmap;
+use dvec::*;
+use dvec::DVec;
+use std::map::hashmap;
type header_map = hashmap<~str, @DVec<@~str>>;
View
4 src/test/auxiliary/issue2378b.rs
@@ -1,7 +1,7 @@
use issue2378a;
-import issue2378a::maybe;
-import issue2378a::methods;
+use issue2378a::maybe;
+use issue2378a::methods;
type two_maybes<T> = {a: maybe<T>, b: maybe<T>};
View
2  src/test/auxiliary/issue_2242_b.rs
@@ -2,7 +2,7 @@
#[crate_type = "lib"];
use a;
-import a::to_strz;
+use a::to_strz;
impl int: to_strz {
fn to_strz() -> ~str { fmt!("%?", self) }
View
2  src/test/auxiliary/issue_2242_c.rs
@@ -3,7 +3,7 @@
use a;
-import a::to_strz;
+use a::to_strz;
impl bool: to_strz {
fn to_strz() -> ~str { fmt!("%b", self) }
View
2  src/test/auxiliary/issue_2316_b.rs
@@ -2,7 +2,7 @@ use issue_2316_a;
mod cloth {
-import issue_2316_a::*;
+use issue_2316_a::*;
export calico, gingham, flannel;
export fabric;
View
2  src/test/auxiliary/test_comm.rs
@@ -4,7 +4,7 @@
Could probably be more minimal.
*/
-import libc::size_t;
+use libc::size_t;
export port::{};
export port;
View
9 src/test/bench/core-map.rs
@@ -5,11 +5,10 @@
*/
use std;
-import rand;
-import std::map;
-import managed::Managed;
-import send_map::linear::*;
-import io::WriterUtil;
+use std::map;
+use managed::Managed;
+use send_map::linear::*;
+use io::WriterUtil;
struct Results {
sequential_ints: float;
View
8 src/test/bench/core-std.rs
@@ -2,11 +2,11 @@
use std;
-import std::time::precise_time_s;
-import std::map;
-import std::map::{map, hashmap};
+use std::time::precise_time_s;
+use std::map;
+use std::map::{map, hashmap};
-import io::{Reader, ReaderUtil};
+use io::{Reader, ReaderUtil};
fn main(argv: ~[~str]) {
#macro[
View
4 src/test/bench/core-vec-append.rs
@@ -1,8 +1,8 @@
// A raw test of vector appending performance.
use std;
-import dvec::DVec;
-import io::WriterUtil;
+use dvec::DVec;
+use io::WriterUtil;
fn collect_raw(num: uint) -> ~[uint] {
let mut result = ~[];
View
22 src/test/bench/graph500-bfs.rs
@@ -5,17 +5,17 @@ An implementation of the Graph500 Breadth First Search problem in Rust.
*/
use std;
-import std::arc;
-import std::time;
-import std::map;
-import std::map::map;
-import std::map::hashmap;
-import std::deque;
-import std::deque::Deque;
-import std::par;
-import io::WriterUtil;
-import comm::*;
-import int::abs;
+use std::arc;
+use std::time;
+use std::map;
+use std::map::map;
+use std::map::hashmap;
+use std::deque;
+use std::deque::Deque;
+use std::par;
+use io::WriterUtil;
+use comm::*;
+use int::abs;
type node_id = i64;
type graph = ~[~[node_id]];
View
6 src/test/bench/msgsend-pipes-shared.rs
@@ -11,10 +11,10 @@
// xfail-pretty
use std;
-import io::Writer;
-import io::WriterUtil;
+use io::Writer;
+use io::WriterUtil;
-import pipes::{Port, Chan, SharedChan};
+use pipes::{Port, Chan, SharedChan};
macro_rules! move_out (
{ $x:expr } => { unsafe { let y <- *ptr::addr_of($x); y } }
View
6 src/test/bench/msgsend-pipes.rs
@@ -7,10 +7,10 @@
// xfail-pretty
use std;
-import io::Writer;
-import io::WriterUtil;
+use io::Writer;
+use io::WriterUtil;
-import pipes::{Port, PortSet, Chan};
+use pipes::{Port, PortSet, Chan};
macro_rules! move_out (
{ $x:expr } => { unsafe { let y <- *ptr::addr_of($x); y } }
View
6 src/test/bench/msgsend-ring-mutex-arcs.rs
@@ -7,11 +7,11 @@
// xfail-pretty
-import future::future;
+use future::future;
use std;
-import std::time;
-import std::arc;
+use std::time;
+use std::arc;
// A poor man's pipe.
type pipe = arc::MutexARC<~[uint]>;
View
6 src/test/bench/msgsend-ring-pipes.rs
@@ -8,12 +8,12 @@
// xfail-pretty
-import future::future;
+use future::future;
use std;
-import std::time;
+use std::time;
-import pipes::recv;
+use pipes::recv;
proto! ring (
num:send {
View
6 src/test/bench/msgsend-ring-rw-arcs.rs
@@ -7,11 +7,11 @@
// xfail-pretty
-import future::future;
+use future::future;
use std;
-import std::time;
-import std::arc;
+use std::time;
+use std::arc;
// A poor man's pipe.
type pipe = arc::RWARC<~[uint]>;
View
6 src/test/bench/msgsend-ring.rs
@@ -4,11 +4,11 @@
// that things will look really good once we get that lock out of the
// message path.
-import comm::*;
-import future::future;
+use comm::*;
+use future::future;
use std;
-import std::time;
+use std::time;
fn thread_ring(i: uint,
count: uint,
View
4 src/test/bench/msgsend.rs
@@ -5,8 +5,8 @@
// I *think* it's the same, more or less.
use std;
-import io::Writer;
-import io::WriterUtil;
+use io::Writer;
+use io::WriterUtil;
enum request {
get_count,
View
4 src/test/bench/pingpong.rs
@@ -4,8 +4,8 @@
use std;
-import pipes::{spawn_service, recv};
-import std::time::precise_time_s;
+use pipes::{spawn_service, recv};
+use std::time::precise_time_s;
proto! pingpong (
ping: send {
View
4 src/test/bench/shootout-binarytrees.rs
@@ -1,6 +1,6 @@
use std;
-import std::arena;
-import methods = std::arena::Arena;
+use std::arena;
+use methods = std::arena::Arena;
enum tree/& { nil, node(&tree, &tree, int), }
View
6 src/test/bench/shootout-chameneos-redux.rs
@@ -1,9 +1,9 @@
// chameneos
use std;
-import std::map;
-import std::map::hashmap;
-import std::sort;
+use std::map;
+use std::map::hashmap;
+use std::sort;
fn print_complements() {
let all = ~[Blue, Red, Yellow];
View
2  src/test/bench/shootout-fannkuchredux.rs
@@ -1,7 +1,5 @@
// Based on Isaac Gouy's fannkuchredux.csharp
use std;
-import int;
-import vec;
fn fannkuch(n: int) -> int {
fn perm1init(i: uint) -> int { return i as int; }
View
6 src/test/bench/shootout-fasta.rs
@@ -6,11 +6,7 @@
* http://shootout.alioth.debian.org/
*/
use std;
-import vec;
-import uint;
-import int;
-import str;
-import io::WriterUtil;
+use io::WriterUtil;
fn LINE_LENGTH() -> uint { return 60u; }
View
10 src/test/bench/shootout-k-nucleotide-pipes.rs
@@ -3,11 +3,11 @@
// multi tasking k-nucleotide
use std;
-import std::map;
-import std::map::hashmap;
-import std::sort;
-import io::ReaderUtil;
-import pipes::{stream, Port, Chan};
+use std::map;
+use std::map::hashmap;
+use std::sort;
+use io::ReaderUtil;
+use pipes::{stream, Port, Chan};
// given a map, print a sorted version of it
fn sort_and_fmt(mm: hashmap<~[u8], uint>, total: uint) -> ~str {
View
8 src/test/bench/shootout-k-nucleotide.rs
@@ -3,10 +3,10 @@
// multi tasking k-nucleotide
use std;
-import std::map;
-import std::map::hashmap;
-import std::sort;
-import io::ReaderUtil;
+use std::map;
+use std::map::hashmap;
+use std::sort;
+use io::ReaderUtil;
// given a map, print a sorted version of it
fn sort_and_fmt(mm: hashmap<~[u8], uint>, total: uint) -> ~str {
View
4 src/test/bench/shootout-mandelbrot.rs
@@ -13,8 +13,8 @@
// writes pbm image to output path
use std;
-import io::WriterUtil;
-import std::map::hashmap;
+use io::WriterUtil;
+use std::map::hashmap;
struct cmplx {
re: f64;
View
20 src/test/bench/shootout-pfib.rs
@@ -12,16 +12,16 @@
use std;
-import std::{time, getopts};
-import io::WriterUtil;
-import int::range;
-import pipes::Port;
-import pipes::Chan;
-import pipes::send;
-import pipes::recv;
-
-import core::result;
-import result::{Ok, Err};
+use std::{time, getopts};
+use io::WriterUtil;
+use int::range;
+use pipes::Port;
+use pipes::Chan;
+use pipes::send;
+use pipes::recv;
+
+use core::result;
+use result::{Ok, Err};
fn fib(n: int) -> int {
fn pfib(c: Chan<int>, n: int) {
View
6 src/test/bench/std-smallintmap.rs
@@ -1,9 +1,9 @@
// Microbenchmark for the smallintmap library
use std;
-import std::smallintmap;
-import std::smallintmap::SmallIntMap;
-import io::WriterUtil;
+use std::smallintmap;
+use std::smallintmap::SmallIntMap;
+use io::WriterUtil;
fn append_sequential(min: uint, max: uint, map: SmallIntMap<uint>) {
for uint::range(min, max) |i| {
View
4 src/test/bench/sudoku.rs
@@ -1,7 +1,7 @@
use std;
-import std::bitv;
-import io::{ReaderUtil, WriterUtil};
+use std::bitv;
+use io::{ReaderUtil, WriterUtil};
// Computes a single solution to a given 9x9 sudoku
//
View
4 src/test/bench/task-perf-alloc-unwind.rs
@@ -2,8 +2,8 @@
use std;
-import std::list::{List, Cons, Nil};
-import std::time::precise_time_s;
+use std::list::{List, Cons, Nil};
+use std::time::precise_time_s;
fn main() {
let (repeat, depth) = if os::getenv(~"RUST_BENCH").is_some() {
View
32 src/test/bench/task-perf-word-count-generic.rs
@@ -12,25 +12,19 @@
use std;
-import option = option;
-import option::Some;
-import option::None;
-import str;
-import std::map;
-import std::map::hashmap;
-import vec;
-import io;
-import io::WriterUtil;
-
-import std::time;
-import u64;
-
-import task;
-import comm;
-import comm::Chan;
-import comm::Port;
-import comm::recv;
-import comm::send;
+use option = option;
+use option::Some;
+use option::None;
+use std::map;
+use std::map::hashmap;
+use io::WriterUtil;
+
+use std::time;
+
+use comm::Chan;
+use comm::Port;
+use comm::recv;
+use comm::send;
macro_rules! move_out (
{ $x:expr } => { unsafe { let y <- *ptr::addr_of($x); y } }
View
2  src/test/compile-fail/ambig_impl_2_exe.rs
@@ -1,7 +1,7 @@
// xfail-fast aux-build
// aux-build:ambig_impl_2_lib.rs
use ambig_impl_2_lib;
-import ambig_impl_2_lib::me;
+use ambig_impl_2_lib::me;
trait me {
fn me() -> uint;
}
View
2  src/test/compile-fail/arc-cant-nest-rw-arc-3177.rs
@@ -1,7 +1,7 @@
// xfail-test
// error-pattern: instantiating a type parameter with an incompatible type
use std;
-import std::arc::rw_arc;
+use std::arc::rw_arc;
fn main() {
let arc1 = ~rw_arc(true);
View
2  src/test/compile-fail/arc-rw-cond-shouldnt-escape.rs
@@ -1,6 +1,6 @@
// error-pattern: reference is not valid outside of its lifetime
use std;
-import std::arc;
+use std::arc;
fn main() {
let x = ~arc::RWARC(1);
let mut y = None;
View
2  src/test/compile-fail/arc-rw-read-mode-shouldnt-escape.rs
@@ -1,5 +1,5 @@
use std;
-import std::arc;
+use std::arc;
fn main() {
let x = ~arc::RWARC(1);
let mut y = None;
View
2  src/test/compile-fail/arc-rw-state-shouldnt-escape.rs
@@ -1,6 +1,6 @@
// error-pattern: reference is not valid outside of its lifetime
use std;
-import std::arc;
+use std::arc;
fn main() {
let x = ~arc::RWARC(1);
let mut y = None;
View
2  src/test/compile-fail/arc-rw-write-mode-cond-shouldnt-escape.rs
@@ -1,6 +1,6 @@
// error-pattern: reference is not valid outside of its lifetime
use std;
-import std::arc;
+use std::arc;
fn main() {
let x = ~arc::RWARC(1);
let mut y = None;
View
2  src/test/compile-fail/arc-rw-write-mode-shouldnt-escape.rs
@@ -1,6 +1,6 @@
// error-pattern: reference is not valid outside of its lifetime
use std;
-import std::arc;
+use std::arc;
fn main() {
let x = ~arc::RWARC(1);
let mut y = None;
View
1  src/test/compile-fail/bad-module.rs
@@ -1,4 +1,3 @@
// error-pattern: unresolved import
-import thing;
fn main() { let foo = thing::len(~[]); }
View
4 src/test/compile-fail/borrowck-borrowed-uniq-rvalue.rs
@@ -1,7 +1,7 @@
//buggy.rs
use std;
-import std::map::hashmap;
-import std::map;
+use std::map::hashmap;
+use std::map;
fn main() {
let buggy_map :hashmap<uint, &uint> =
View
2  src/test/compile-fail/export-import.rs
@@ -1,6 +1,6 @@
// error-pattern: import
-import m::unexported;
+use m::unexported;
mod m {
export exported;
View
4 src/test/compile-fail/for-loop-decl.rs
@@ -1,7 +1,7 @@
// error-pattern: mismatched types
use std;
-import std::map::hashmap;
-import std::bitv;
+use std::map::hashmap;
+use std::bitv;
type fn_info = {vars: hashmap<uint, var_info>};
type var_info = {a: uint, b: uint};
View
2  src/test/compile-fail/fully-qualified-type-name4.rs
@@ -1,6 +1,6 @@
// Test that we use fully-qualified type names in error messages.
-import core::task::Task;
+use core::task::Task;
fn bar(x: uint) -> Task {
return x;
View
2  src/test/compile-fail/import-from-missing.rs
@@ -1,6 +1,6 @@
// error-pattern:unresolved
// xfail-test
-import spam::{ham, eggs};
+use spam::{ham, eggs};
mod spam {
fn ham() { }
View
2  src/test/compile-fail/import-from-path.rs
@@ -1,2 +1,2 @@
// error-pattern:expected
-import foo::{bar}::baz
+use foo::{bar}::baz
View
2  src/test/compile-fail/import-from-rename.rs
@@ -1,6 +1,6 @@
// error-pattern:expected
-import baz = foo::{bar};
+use baz = foo::{bar};
mod foo {
fn bar() {}
View
2  src/test/compile-fail/import-glob-0.rs
@@ -1,6 +1,6 @@
// error-pattern: unresolved name
-import module_of_many_things::*;
+use module_of_many_things::*;
mod module_of_many_things {
export f1;
View
2  src/test/compile-fail/import-glob-export.rs
@@ -1,7 +1,7 @@
// error-pattern:unresolved name
-import m1::*;
+use m1::*;
mod m1 {
export f1;
View
2  src/test/compile-fail/import-glob-path.rs
@@ -1,2 +1,2 @@
// error-pattern:expected
-import foo::*::bar
+use foo::*::bar
View
2  src/test/compile-fail/import-glob-rename.rs
@@ -1,6 +1,6 @@
// error-pattern:expected
-import baz = foo::*;
+use baz = foo::*;
mod foo {
fn bar() {}
View
2  src/test/compile-fail/import-loop.rs
@@ -1,6 +1,6 @@
// error-pattern:import
-import y::x;
+use y::x;
mod y {
import x;
View
4 src/test/compile-fail/import.rs
@@ -1,7 +1,7 @@
// xfail-test
// error-pattern: unresolved
-import zed::bar;
-import zed::baz;
+use zed::bar;
+use zed::baz;
mod zed {
fn bar() { debug!("bar"); }
}
View
2  src/test/compile-fail/import2.rs
@@ -1,5 +1,5 @@
// error-pattern: unresolved
-import baz::zed::bar;
+use baz::zed::bar;
mod baz { }
mod zed {
fn bar() { debug!("bar3"); }
View
2  src/test/compile-fail/import3.rs
@@ -1,4 +1,4 @@
// error-pattern: unresolved
-import main::bar;
+use main::bar;
fn main(args: ~[str]) { debug!("foo"); }
View
2  src/test/compile-fail/issue-1697.rs
@@ -1,7 +1,7 @@
// xfail-test
// Testing that we don't fail abnormally after hitting the errors
-import unresolved::*; //~ ERROR unresolved modulename
+use unresolved::*; //~ ERROR unresolved modulename
//~^ ERROR unresolved does not name a module
fn main() {
View
2  src/test/compile-fail/issue-2123.rs
@@ -1,6 +1,6 @@
// xfail-test
// error-pattern:unresolved import: m::f
-import x = m::f;
+use x = m::f;
mod m {
}
View
2  src/test/compile-fail/issue-2590.rs
@@ -1,4 +1,4 @@
-import dvec::DVec;
+use dvec::DVec;
type parser = {
tokens: DVec<int>,
View
2  src/test/compile-fail/issue-2937.rs
@@ -1,5 +1,5 @@
// error-pattern:failed to resolve imports
-import x = m::f;
+use x = m::f;
mod m {
}
View
3  src/test/compile-fail/issue-511.rs
@@ -1,6 +1,5 @@
use std;
-import option;
-import cmp::Eq;
+use cmp::Eq;
fn f<T:Eq>(&o: Option<T>) {
assert o == option::None;
View
6 src/test/compile-fail/map-types.rs
@@ -1,7 +1,7 @@
use std;
-import std::map;
-import std::map::hashmap;
-import std::map::map;
+use std::map;
+use std::map::hashmap;
+use std::map::map;
// Test that trait types printed in error msgs include the type arguments.
View
2  src/test/compile-fail/name-clash-nullary.rs
@@ -1,5 +1,5 @@
// error-pattern:declaration of `None` shadows
-import option::*;
+use option::*;
fn main() {
let None: int = 42;
View
4 src/test/compile-fail/no-capture-arc.rs
@@ -1,8 +1,8 @@
// error-pattern: copying a noncopyable value
use std;
-import std::arc;
-import comm::*;
+use std::arc;
+use comm::*;
fn main() {
let v = ~[1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
View
4 src/test/compile-fail/no-reuse-move-arc.rs
@@ -1,6 +1,6 @@
use std;
-import std::arc;
-import comm::*;
+use std::arc;
+use comm::*;
fn main() {
let v = ~[1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
View
3  src/test/compile-fail/pattern-tyvar-2.rs
@@ -1,8 +1,7 @@
// -*- rust -*-
use std;
-import option;
-import option::Some;
+use option::Some;
// error-pattern: mismatched types
View
3  src/test/compile-fail/pattern-tyvar.rs
@@ -1,7 +1,6 @@
// -*- rust -*-
use std;
-import option;
-import option::Some;
+use option::Some;
// error-pattern: mismatched types
View
2  src/test/compile-fail/private-method-cross-crate.rs
@@ -2,7 +2,7 @@
// xfail-fast
// aux-build:cci_class_5.rs
use cci_class_5;
-import cci_class_5::kitties::*;
+use cci_class_5::kitties::*;
fn main() {
let nyan : cat = cat(52u, 99);
View
2  src/test/compile-fail/private-struct-field-cross-crate.rs
@@ -1,7 +1,7 @@
// xfail-fast
// aux-build:cci_class.rs
use cci_class;
-import cci_class::kitties::*;
+use cci_class::kitties::*;
fn main() {
let nyan : cat = cat(52u, 99);
View
12 src/test/compile-fail/qquote-1.rs
@@ -3,13 +3,13 @@
use std;
use syntax;
-import io::*;
+use io::*;
-import syntax::diagnostic;
-import syntax::ast;
-import syntax::codemap;
-import syntax::parse;
-import syntax::print::*;
+use syntax::diagnostic;
+use syntax::ast;
+use syntax::codemap;
+use syntax::parse;
+use syntax::print::*;
fn new_parse_sess() -> parse::parse_sess {
fail;
View
12 src/test/compile-fail/qquote-2.rs
@@ -3,13 +3,13 @@
use std;
use syntax;
-import std::io::*;
+use std::io::*;
-import syntax::diagnostic;
-import syntax::ast;
-import syntax::codemap;
-import syntax::parse::parser;
-import syntax::print::*;
+use syntax::diagnostic;
+use syntax::ast;
+use syntax::codemap;
+use syntax::parse::parser;
+use syntax::print::*;
fn new_parse_sess() -> parser::parse_sess {
fail;
View
1  src/test/compile-fail/spawn-non-nil-fn.rs
@@ -1,6 +1,5 @@
// error-pattern: mismatched types
use std;
-import task;
fn main() { task::spawn(fn~() -> int { 10 }); }
View
2  src/test/compile-fail/sync-cond-shouldnt-escape.rs
@@ -1,6 +1,6 @@
// error-pattern: reference is not valid outside of its lifetime
use std;
-import std::sync;
+use std::sync;
fn main() {
let m = ~sync::Mutex();
View
2  src/test/compile-fail/sync-rwlock-cond-shouldnt-escape.rs
@@ -1,6 +1,6 @@
// error-pattern: reference is not valid outside of its lifetime
use std;
-import std::sync;
+use std::sync;
fn main() {
let x = ~sync::RWlock();
let mut y = None;
View
2  src/test/compile-fail/sync-rwlock-read-mode-shouldnt-escape.rs
@@ -1,6 +1,6 @@
// error-pattern: cannot infer an appropriate lifetime
use std;
-import std::sync;
+use std::sync;
fn main() {
let x = ~sync::RWlock();
let mut y = None;
View
2  src/test/compile-fail/sync-rwlock-write-mode-cond-shouldnt-escape.rs
@@ -1,6 +1,6 @@
// error-pattern: reference is not valid outside of its lifetime
use std;
-import std::sync;
+use std::sync;
fn main() {
let x = ~sync::RWlock();
let mut y = None;
View
2  src/test/compile-fail/sync-rwlock-write-mode-shouldnt-escape.rs
@@ -1,6 +1,6 @@
// error-pattern: reference is not valid outside of its lifetime
use std;
-import std::sync;
+use std::sync;
fn main() {
let x = ~sync::RWlock();
let mut y = None;
View
2  src/test/compile-fail/unused-imports-warn.rs
@@ -1,6 +1,6 @@
// error-pattern:unused import
// compile-flags:-W unused-imports
-import cal = bar::c::cc;
+use cal = bar::c::cc;
mod foo {
type point = {x: int, y: int};
View
2  src/test/compile-fail/view-items-at-top.rs
@@ -5,7 +5,7 @@ use std;
fn f() {
}
-import std::net; //~ ERROR view items must be declared at the top
+use std::net; //~ ERROR view items must be declared at the top
fn main() {
}
View
1  src/test/run-fail/fail-main.rs
@@ -1,4 +1,3 @@
// error-pattern:moop
use std;
-import uint;
fn main() { fail ~"moop"; }
View
1  src/test/run-fail/for-each-loop-fail.rs
@@ -1,4 +1,3 @@
// error-pattern:moop
use std;
-import uint;
fn main() { for uint::range(0u, 10u) |_i| { fail ~"moop"; } }
View
2  src/test/run-fail/issue-2156.rs
@@ -1,7 +1,7 @@
// error-pattern:explicit failure
// Don't double free the string
use std;
-import io::Reader;
+use io::Reader;
fn main() {
do io::with_str_reader(~"") |rdr| {
View
2  src/test/run-fail/issue-2444.rs
@@ -1,7 +1,7 @@
// error-pattern:explicit failure
use std;
-import std::arc;
+use std::arc;
enum e<T: const send> { e(arc::ARC<T>) }
View
5 src/test/run-fail/linked-failure.rs
@@ -2,9 +2,8 @@
// error-pattern:1 == 2
use std;
-import task;
-import comm::Port;
-import comm::recv;
+use comm::Port;
+use comm::recv;
fn child() { assert (1 == 2); }
View
7 src/test/run-fail/linked-failure2.rs
@@ -2,10 +2,9 @@
// error-pattern:fail
use std;
-import task;
-import comm::Chan;
-import comm::Port;
-import comm::recv;
+use comm::Chan;
+use comm::Port;
+use comm::recv;
fn child() { fail; }
View
5 src/test/run-fail/linked-failure3.rs
@@ -2,9 +2,8 @@
// error-pattern:fail
use std;
-import task;
-import comm::Port;
-import comm::recv;
+use comm::Port;
+use comm::recv;
fn grandchild() { fail ~"grandchild dies"; }
View
7 src/test/run-fail/linked-failure4.rs
@@ -1,10 +1,9 @@
// -*- rust -*-
// error-pattern:1 == 2
use std;
-import task;
-import comm::Chan;
-import comm::Port;
-import comm::recv;
+use comm::Chan;
+use comm::Port;
+use comm::recv;
fn child() { assert (1 == 2); }
View
8 src/test/run-fail/port-type.rs
@@ -1,9 +1,9 @@
// error-pattern:meep
use std;
-import comm::Chan;
-import comm::Port;
-import comm::send;
-import comm::recv;
+use comm::Chan;
+use comm::Port;
+use comm::send;
+use comm::recv;
fn echo<T: send>(c: Chan<T>, oc: Chan<Chan<T>>) {
// Tests that the type argument in port gets
View
1  src/test/run-fail/spawnfail.rs
@@ -1,7 +1,6 @@
// xfail-win32
// error-pattern:explicit
use std;
-import task;
// We don't want to see any invalid reads
fn main() {
View
2  src/test/run-fail/task-comm-recv-block.rs
@@ -1,8 +1,6 @@
// error-pattern:goodfail
use std;
-import task;
-import comm;
fn goodfail() {
task::yield();
View
5 src/test/run-fail/unwind-misc-1.rs
@@ -1,9 +1,8 @@
// error-pattern:fail
use std;
-import std::map;
-import std::map::hashmap;
-import uint;
+use std::map;
+use std::map::hashmap;
fn main() {
let count = @mut 0u;
View
4 src/test/run-fail/zip-different-lengths.rs
@@ -2,9 +2,7 @@
// the assert should fail at runtime
// error-pattern:Assertion same_length(chars, ints) failed
use std;
-import uint;
-import u8;
-import vec::{same_length, zip};
+use vec::{same_length, zip};
fn enum_chars(start: u8, end: u8) -> ~[char] {
assert start < end;
View
11 src/test/run-pass-fulldeps/issue-1926.rs
@@ -1,12 +1,11 @@
// xfail-test
// fails pretty printing for some reason
use syntax;
-import syntax::diagnostic;
-import syntax;
-import syntax::ast;
-import syntax::codemap;
-import syntax::print::pprust;
-import syntax::parse::parser;
+use syntax::diagnostic;
+use syntax::ast;
+use syntax::codemap;
+use syntax::print::pprust;
+use syntax::parse::parser;
fn new_parse_sess() -> parser::parse_sess {
let cm = codemap::new_codemap();
View
12 src/test/run-pass-fulldeps/qquote.rs
@@ -3,13 +3,13 @@
use std;
use syntax;
-import io::*;
+use io::*;
-import syntax::diagnostic;
-import syntax::ast;
-import syntax::codemap;
-import syntax::parse;
-import syntax::print::*;
+use syntax::diagnostic;
+use syntax::ast;
+use syntax::codemap;
+use syntax::parse;
+use syntax::print::*;
trait fake_ext_ctxt {
fn cfg() -> ast::crate_cfg;
View
2  src/test/run-pass/acyclic-unwind.rs
@@ -2,8 +2,6 @@
// -*- rust -*-
use std;
-import comm;
-import task;
fn f(c: comm::_chan<int>) {
type t = {_0: int, _1: int, _2: int};
View
3  src/test/run-pass/alias-uninit-value.rs
@@ -2,8 +2,7 @@
// Regression test for issue #374
use std;
-import option;
-import option::None;
+use option::None;
enum sty { ty_nil, }
View
1  src/test/run-pass/alt-join.rs
@@ -1,6 +1,5 @@
use std;
-import option;
fn foo<T>(y: Option<T>) {
let mut x: int;
View
2  src/test/run-pass/alt-pattern-drop.rs
@@ -1,7 +1,7 @@
// -*- rust -*-
-import core::sys;
+use core::sys;
enum t { make_t(@int), clam, }
View
2  src/test/run-pass/anon-extern-mod-cross-crate-2.rs
@@ -2,7 +2,7 @@
// aux-build:anon-extern-mod-cross-crate-1.rs
use anonexternmod;
-import anonexternmod::*;
+use anonexternmod::*;
fn main() {
last_os_error();
View
8 src/test/run-pass/auto_serialize.rs
@@ -3,10 +3,10 @@ use std;
// These tests used to be separate files, but I wanted to refactor all
// the common code.
-import cmp::Eq;
-import std::ebml;
-import io::Writer;
-import std::serialization::{serialize_uint, deserialize_uint};
+use cmp::Eq;
+use std::ebml;
+use io::Writer;
+use std::serialization::{serialize_uint, deserialize_uint};
fn test_ser_and_deser<A:Eq>(a1: A,
expected: ~str,
View
9 src/test/run-pass/basic-1.rs
@@ -1,11 +1,10 @@
// -*- rust -*-
use std;
-import comm::Chan;
-import comm::Port;
-import comm::send;
-import comm::recv;
-import task;
+use comm::Chan;
+use comm::Port;
+use comm::send;
+use comm::recv;
fn a(c: Chan<int>) { send(c, 10); }
View
10 src/test/run-pass/basic-2.rs
@@ -1,12 +1,10 @@
// -*- rust -*-
use std;
-import comm;
-import comm::Port;
-import comm::send;
-import comm::Chan;
-import comm::recv;
-import task;
+use comm::Port;
+use comm::send;
+use comm::Chan;
+use comm::recv;
fn a(c: Chan<int>) { debug!("task a0"); debug!("task a1"); send(c, 10); }
View
8 src/test/run-pass/basic.rs
@@ -1,11 +1,9 @@
// -*- rust -*-
use std;
-import comm;
-import comm::send;
-import comm::Chan;
-import comm::recv;
-import task;
+use comm::send;
+use comm::Chan;
+use comm::recv;
fn a(c: Chan<int>) {
if true {
View
2  src/test/run-pass/bind-by-move.rs
@@ -1,6 +1,6 @@
// xfail-test
use std;
-import std::arc;
+use std::arc;
fn dispose(+_x: arc::ARC<bool>) unsafe { }
fn main() {
View
4 src/test/run-pass/binops.rs
@@ -1,9 +1,7 @@
// Binop corner cases
use std;
-import unsafe::reinterpret_cast;
-import task;
-import comm;
+use unsafe::reinterpret_cast;
fn test_nil() {
assert (() == ());
View
2  src/test/run-pass/bitv-perf-test.rs
@@ -1,5 +1,5 @@
use std;
-import std::bitv::*;
+use std::bitv::*;
fn bitv_test() -> bool {
let v1 = ~Bitv(31, false);
View
1  src/test/run-pass/block-vec-map2.rs
@@ -1,5 +1,4 @@
use std;
-import vec;
fn main() {
let v =
View
2  src/test/run-pass/borrowck-borrow-from-expr-block.rs
@@ -1,4 +1,4 @@
-import ptr::to_uint;
+use ptr::to_uint;
fn borrow(x: &int, f: fn(x: &int)) {
f(x)
View
1  src/test/run-pass/c-stack-returning-int64.rs
@@ -1,5 +1,4 @@
use std;
-import str;
#[abi = "cdecl"]
#[nolink]
View
2  src/test/run-pass/cci_borrow.rs
@@ -2,7 +2,7 @@
// aux-build:cci_borrow_lib.rs
use cci_borrow_lib;
-import cci_borrow_lib::foo;
+use cci_borrow_lib::foo;
fn main() {
let p = @22u;
View
2  src/test/run-pass/cci_capture_clause.rs
@@ -6,7 +6,7 @@
use cci_capture_clause;
-import comm::recv;
+use comm::recv;
fn main() {
cci_capture_clause::foo(()).recv()
View
2  src/test/run-pass/cci_impl_exe.rs
@@ -2,7 +2,7 @@
// aux-build:cci_impl_lib.rs
use cci_impl_lib;
-import cci_impl_lib::uint_helpers;
+use cci_impl_lib::uint_helpers;
fn main() {
//let bt0 = sys::frame_address();
View
2  src/test/run-pass/cci_nested_exe.rs
@@ -2,7 +2,7 @@
// aux-build:cci_nested_lib.rs
use cci_nested_lib;
-import cci_nested_lib::*;
+use cci_nested_lib::*;
fn main() {
let lst = new_int_alist();
View
2  src/test/run-pass/cci_no_inline_exe.rs
@@ -2,7 +2,7 @@
// aux-build:cci_no_inline_lib.rs
use cci_no_inline_lib;
-import cci_no_inline_lib::iter;
+use cci_no_inline_lib::iter;
fn main() {
// Check that a cross-crate call function not marked as inline
View
10 src/test/run-pass/chan-leak.rs
@@ -1,12 +1,10 @@
// Issue #763
use std;
-import task;
-import comm::Chan;
-import comm::send;
-import comm;
-import comm::Port;
-import comm::recv;
+use comm::Chan;
+use comm::send;
+use comm::Port;
+use comm::recv;
enum request { quit, close(Chan<bool>), }
View
1  src/test/run-pass/child-outlives-parent.rs
@@ -1,7 +1,6 @@
// Reported as issue #126, child leaks the string.
use std;
-import task;
fn child2(&&s: ~str) { }
View
4 src/test/run-pass/class-cast-to-trait-cross-crate-2.rs
@@ -1,8 +1,8 @@
// xfail-fast
// aux-build:cci_class_cast.rs
use cci_class_cast;
-import to_str::ToStr;
-import cci_class_cast::kitty::*;
+use to_str::ToStr;
+use cci_class_cast::kitty::*;
fn print_out<T: ToStr>(thing: T, expected: ~str) {
let actual = thing.to_str();
View
4 src/test/run-pass/class-cast-to-trait-cross-crate.rs
@@ -1,7 +1,7 @@
// xfail-test
-import to_str::*;
-import to_str::to_str;
+use to_str::*;
+use to_str::to_str;
class cat : to_str {
priv {
View
2  src/test/run-pass/class-exports.rs
@@ -1,7 +1,7 @@
/* Test that exporting a class also exports its
public fields and methods */
-import kitty::*;
+use kitty::*;
mod kitty {
export cat;
View
2  src/test/run-pass/class-impl-parameterized-trait.rs
@@ -2,7 +2,7 @@
// xfail-fast
use std;
-import std::map::*;
+use std::map::*;
class cat : map<int, bool> {
priv {
View
2  src/test/run-pass/class-impl-very-parameterized-trait.rs
@@ -1,5 +1,5 @@
use std;
-import std::map::*;
+use std::map::*;
enum cat_type { tuxedo, tabby, tortoiseshell }
View
2  src/test/run-pass/class-implement-trait-cross-crate.rs
@@ -1,7 +1,7 @@
// xfail-fast
// aux-build:cci_class_trait.rs
use cci_class_trait;
-import cci_class_trait::animals::*;
+use cci_class_trait::animals::*;
struct cat : noisy {
priv {
View
6 src/test/run-pass/class-implements-multiple-traits.rs
@@ -1,9 +1,9 @@
// xfail-test
use std;
-import std::map::*;
-import vec::*;
-import dvec::{dvec, extensions};
+use std::map::*;
+use vec::*;
+use dvec::{dvec, extensions};
enum furniture { chair, couch, bed }
enum body_part { finger, toe, nose, ear }
View
2  src/test/run-pass/class-method-cross-crate.rs
@@ -1,7 +1,7 @@
// xfail-fast
// aux-build:cci_class_2.rs
use cci_class_2;
-import cci_class_2::kitties::*;
+use cci_class_2::kitties::*;
fn main() {
let nyan : cat = cat(52u, 99);
View
2  src/test/run-pass/class-methods-cross-crate.rs
@@ -1,7 +1,7 @@
// xfail-fast
// aux-build:cci_class_3.rs
use cci_class_3;
-import cci_class_3::kitties::*;
+use cci_class_3::kitties::*;
fn main() {
let nyan : cat = cat(52u, 99);
View
2  src/test/run-pass/class-poly-methods-cross-crate.rs
@@ -1,7 +1,7 @@
// xfail-fast
// aux-build:cci_class_6.rs
use cci_class_6;
-import cci_class_6::kitties::*;
+use cci_class_6::kitties::*;
fn main() {
let nyan : cat<char> = cat::<char>(52u, 99, ~['p']);
View
4 src/test/run-pass/class-separate-impl.rs
@@ -1,6 +1,6 @@
// xfail-fast
-import to_str::*;
-import to_str::ToStr;
</