Update users for the std::rand -> librand move.
This commit is contained in:
parent
15e2898462
commit
198caa87cd
70 changed files with 131 additions and 64 deletions
|
|
@ -9,11 +9,12 @@
|
|||
// except according to those terms.
|
||||
|
||||
extern crate collections;
|
||||
extern crate rand;
|
||||
extern crate time;
|
||||
|
||||
use collections::{TrieMap, TreeMap, HashMap, HashSet};
|
||||
use std::os;
|
||||
use std::rand::{Rng, IsaacRng, SeedableRng};
|
||||
use rand::{Rng, IsaacRng, SeedableRng};
|
||||
use std::uint;
|
||||
use std::vec;
|
||||
|
||||
|
|
|
|||
|
|
@ -11,13 +11,13 @@
|
|||
// except according to those terms.
|
||||
|
||||
extern crate collections;
|
||||
extern crate rand;
|
||||
extern crate time;
|
||||
|
||||
use collections::bitv::BitvSet;
|
||||
use collections::TreeSet;
|
||||
use collections::HashSet;
|
||||
use std::os;
|
||||
use std::rand;
|
||||
use std::uint;
|
||||
|
||||
struct Results {
|
||||
|
|
|
|||
|
|
@ -12,13 +12,13 @@
|
|||
|
||||
#[feature(macro_rules)];
|
||||
|
||||
extern crate rand;
|
||||
extern crate time;
|
||||
|
||||
use time::precise_time_s;
|
||||
use rand::Rng;
|
||||
use std::mem::swap;
|
||||
use std::os;
|
||||
use std::rand::Rng;
|
||||
use std::rand;
|
||||
use std::str;
|
||||
use std::vec;
|
||||
use std::io::File;
|
||||
|
|
|
|||
|
|
@ -11,8 +11,10 @@
|
|||
// Multi-language Perlin noise benchmark.
|
||||
// See https://github.com/nsf/pnoise for timings and alternative implementations.
|
||||
|
||||
extern crate rand;
|
||||
|
||||
use std::f32::consts::PI;
|
||||
use std::rand::{Rng, StdRng};
|
||||
use rand::{Rng, StdRng};
|
||||
|
||||
struct Vec2 {
|
||||
x: f32,
|
||||
|
|
|
|||
|
|
@ -19,4 +19,3 @@ fn g<T:'static>(x: T) -> @T {
|
|||
}
|
||||
|
||||
fn main() {}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
use std::hash::Hash;
|
||||
|
||||
struct Error;
|
||||
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
use std::hash::Hash;
|
||||
|
||||
struct Error;
|
||||
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
use std::hash::Hash;
|
||||
|
||||
struct Error;
|
||||
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
use std::hash::Hash;
|
||||
|
||||
struct Error;
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq)]
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq)]
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq)]
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq)]
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq)]
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq)]
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq)]
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq)]
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq, Ord, TotalEq)]
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq, Ord, TotalEq)]
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq, Ord, TotalEq)]
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq, Ord, TotalEq)]
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
struct Error;
|
||||
|
|
|
|||
|
|
@ -8,8 +8,10 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate rand;
|
||||
use rand::{task_rng, Rng};
|
||||
|
||||
use std::{char, os, str};
|
||||
use std::rand::{task_rng, Rng};
|
||||
use std::io::{File, Process};
|
||||
|
||||
// creates unicode_input_multiple_files_{main,chars}.rs, where the
|
||||
|
|
|
|||
|
|
@ -8,8 +8,10 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate rand;
|
||||
use rand::{task_rng, Rng};
|
||||
|
||||
use std::{char, os, str};
|
||||
use std::rand::{task_rng, Rng};
|
||||
use std::io::{File, Process};
|
||||
|
||||
// creates a file with `fn main() { <random ident> }` and checks the
|
||||
|
|
|
|||
|
|
@ -16,10 +16,11 @@
|
|||
|
||||
#[feature(struct_variant, managed_boxes)];
|
||||
|
||||
extern crate rand;
|
||||
extern crate serialize;
|
||||
|
||||
use std::io::MemWriter;
|
||||
use std::rand::{random, Rand};
|
||||
use rand::{random, Rand};
|
||||
use serialize::{Encodable, Decodable};
|
||||
use serialize::ebml;
|
||||
use serialize::ebml::writer::Encoder;
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@
|
|||
// except according to those terms.
|
||||
|
||||
extern crate serialize; // {En,De}codable
|
||||
extern crate rand; // Rand
|
||||
|
||||
mod submod {
|
||||
// if any of these are implemented without global calls for any
|
||||
// function calls, then being in a submodule will (correctly)
|
||||
|
|
|
|||
|
|
@ -9,9 +9,11 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-fast #7103 `extern crate` does not work on check-fast
|
||||
|
||||
#[feature(struct_variant)];
|
||||
|
||||
use std::rand;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Rand)]
|
||||
struct A;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,8 @@
|
|||
// This test attempts to force the dynamic linker to resolve
|
||||
// external symbols as close to the red zone as possible.
|
||||
|
||||
use std::rand;
|
||||
extern crate rand;
|
||||
|
||||
use std::task;
|
||||
|
||||
mod rustrt {
|
||||
|
|
@ -59,7 +60,7 @@ fn runtest2(f: extern fn(), frame_backoff: u32, last_stk: *u8) -> u32 {
|
|||
}
|
||||
|
||||
pub fn main() {
|
||||
use std::rand::Rng;
|
||||
use rand::Rng;
|
||||
let fns = ~[
|
||||
calllink01,
|
||||
calllink02,
|
||||
|
|
|
|||
|
|
@ -8,8 +8,11 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-fast #7103 `extern crate` does not work on check-fast
|
||||
extern crate rand;
|
||||
|
||||
use std::task;
|
||||
use std::rand::{task_rng, Rng};
|
||||
use rand::{task_rng, Rng};
|
||||
|
||||
static MAX_LEN: uint = 20;
|
||||
static mut drop_counts: [uint, .. MAX_LEN] = [0, .. MAX_LEN];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue