fuzzer: "import" -> "use"
This commit is contained in:
parent
914b6fead9
commit
e4e9788b3a
|
@ -1,5 +1,5 @@
|
|||
use std;
|
||||
import vec;
|
||||
use vec;
|
||||
|
||||
fn vec_equal<T>(v: ~[T], u: ~[T],
|
||||
element_equality_test: fn@(&&T, &&T) -> bool) ->
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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 {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
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 @@ vec_edits is not an iter because iters might go away.
|
|||
|
||||
*/
|
||||
|
||||
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))
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
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 {
|
||||
|
|
Loading…
Reference in New Issue