fuzzer: Change core
to std
in the fuzzer
This commit is contained in:
parent
14be4c23e4
commit
9200237b4d
4 changed files with 14 additions and 7 deletions
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use core::prelude::*;
|
||||
use std::prelude::*;
|
||||
|
||||
use vec;
|
||||
|
||||
|
|
|
@ -22,13 +22,13 @@
|
|||
|
||||
#[no_std];
|
||||
|
||||
extern mod core(name = "std", vers = "0.7-pre");
|
||||
extern mod std(name = "std", vers = "0.7-pre");
|
||||
extern mod extra(name = "extra", vers = "0.7-pre");
|
||||
|
||||
extern mod syntax(vers = "0.7-pre");
|
||||
|
||||
use core::prelude::*;
|
||||
use core::run;
|
||||
use std::prelude::*;
|
||||
use std::run;
|
||||
|
||||
use syntax::diagnostic;
|
||||
use syntax::parse::token::ident_interner;
|
||||
|
@ -698,3 +698,10 @@ pub fn main() {
|
|||
|
||||
error!("Fuzzer done");
|
||||
}
|
||||
|
||||
// For bootstrapping purposes...
|
||||
pub mod core {
|
||||
pub use std::cmp;
|
||||
pub use std::sys;
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ vec_edits is not an iter because iters might go away.
|
|||
|
||||
*/
|
||||
|
||||
use core::prelude::*;
|
||||
use std::prelude::*;
|
||||
|
||||
use vec::slice;
|
||||
use vec::len;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use core::prelude::*;
|
||||
use std::prelude::*;
|
||||
use extra::rand;
|
||||
|
||||
// random uint less than n
|
||||
|
@ -63,7 +63,7 @@ fn weighted_choice<T:copy>(r : rand::rng, v : ~[weighted<T>]) -> T {
|
|||
return item;
|
||||
}
|
||||
}
|
||||
core::unreachable();
|
||||
std::unreachable();
|
||||
}
|
||||
|
||||
fn weighted_vec<T:copy>(v : ~[weighted<T>]) -> ~[T] {
|
||||
|
|
Loading…
Reference in a new issue