提交 e4e9788b 编写于 作者: P Patrick Walton

fuzzer: "import" -> "use"

上级 914b6fea
use std;
import vec;
use vec;
fn vec_equal<T>(v: ~[T], u: ~[T],
element_equality_test: fn@(&&T, &&T) -> bool) ->
......
use std;
import std::rand;
import uint::range;
use std::rand;
use uint::range;
// random uint less than n
fn under(r : rand::rng, n : uint) -> uint {
......
import io::WriterUtil;
use io::WriterUtil;
import syntax::{ast, ast_util, fold, visit, codemap};
import syntax::parse;
import syntax::print::pprust;
import syntax::diagnostic;
use syntax::{ast, ast_util, fold, visit, codemap};
use syntax::parse;
use syntax::print::pprust;
use syntax::diagnostic;
enum test_mode { tm_converge, tm_run, }
type context = { mode: test_mode }; // + rng
......
......@@ -18,11 +18,9 @@
*/
use std;
import vec;
import vec::slice;
import vec::len;
import int;
extern mod std;
use vec::slice;
use vec::len;
fn vec_omit<T: copy>(v: ~[T], i: uint) -> ~[T] {
slice(v, 0u, i) + slice(v, i + 1u, len(v))
......
use std;
import std::rand;
import vec;
extern mod std;
use std::rand;
// random uint less than n
fn under(r : rand::rng, n : uint) -> uint {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册