extra: Put the nail in the coffin, delete libextra
This commit shreds all remnants of libextra from the compiler and standard distribution. Two modules, c_vec/tempfile, were moved into libstd after some cleanup, and the other modules were moved to separate crates as seen fit. Closes #8784 Closes #12413 Closes #12576
This commit is contained in:
parent
e99d523707
commit
58e4ab2b33
158 changed files with 315 additions and 873 deletions
|
|
@ -11,8 +11,6 @@
|
|||
#[crate_id="issue_2526#0.2"];
|
||||
#[crate_type = "lib"];
|
||||
|
||||
extern crate extra;
|
||||
|
||||
struct arc_destruct<T> {
|
||||
_data: int,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@
|
|||
#[crate_id="req"];
|
||||
#[crate_type = "lib"];
|
||||
|
||||
extern crate extra;
|
||||
extern crate collections;
|
||||
|
||||
use std::cell::RefCell;
|
||||
|
|
|
|||
|
|
@ -17,8 +17,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
use std::os;
|
||||
use std::uint;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
use std::os;
|
||||
use std::uint;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
use std::task::spawn;
|
||||
use std::os;
|
||||
use std::uint;
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
use std::os;
|
||||
|
||||
fn ack(m: int, n: int) -> int {
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
// chameneos
|
||||
|
||||
extern crate extra;
|
||||
|
||||
use std::option;
|
||||
use std::os;
|
||||
use std::task;
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
use std::os;
|
||||
|
||||
fn fib(n: int) -> int {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@
|
|||
// ignore-pretty the `let to_child` line gets an extra newline
|
||||
// multi tasking k-nucleotide
|
||||
|
||||
extern crate extra;
|
||||
extern crate collections;
|
||||
|
||||
use std::cmp::Ord;
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@
|
|||
|
||||
#[feature(managed_boxes)];
|
||||
|
||||
extern crate extra;
|
||||
|
||||
use std::io;
|
||||
use std::io::stdio::StdReader;
|
||||
use std::io::BufferedReader;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq)]
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq)]
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq)]
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq)]
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq)]
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq)]
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq)]
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq)]
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq, Ord, TotalEq)]
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq, Ord, TotalEq)]
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq, Ord, TotalEq)]
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
#[deriving(Eq, Ord, TotalEq)]
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This file was auto-generated using 'src/etc/generate-keyword-span-tests.py'
|
||||
|
||||
#[feature(struct_variant)];
|
||||
extern crate extra;
|
||||
extern crate rand;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
fn siphash(k0 : u64) {
|
||||
|
||||
struct siphash {
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
fn siphash<T>() {
|
||||
|
||||
trait t {
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
trait siphash {
|
||||
fn result(&self) -> u64;
|
||||
fn reset(&self);
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
trait SipHash {
|
||||
fn reset(&self);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@
|
|||
// temporary kinds wound up being stored in a cache and used later.
|
||||
// See middle::ty::type_contents() for more information.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
struct List { key: int, next: Option<~List> }
|
||||
|
||||
fn foo(node: ~List) -> int {
|
||||
|
|
|
|||
|
|
@ -9,8 +9,6 @@
|
|||
// except according to those terms.
|
||||
|
||||
|
||||
extern crate extra;
|
||||
|
||||
enum bar { t1((), Option<~[int]>), t2, }
|
||||
|
||||
// n.b. my change changes this error message, but I think it's right -- tjc
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
// error-pattern: mismatched types
|
||||
|
||||
enum bar { t1((), Option<~[int]>), t2, }
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@
|
|||
|
||||
#[feature(quote)];
|
||||
|
||||
extern crate extra;
|
||||
extern crate syntax;
|
||||
|
||||
use io::*;
|
||||
|
|
|
|||
|
|
@ -12,11 +12,8 @@
|
|||
|
||||
#[feature(quote)];
|
||||
|
||||
extern crate extra;
|
||||
extern crate syntax;
|
||||
|
||||
use extra::io::*;
|
||||
|
||||
use syntax::diagnostic;
|
||||
use syntax::ast;
|
||||
use syntax::codemap;
|
||||
|
|
|
|||
|
|
@ -9,8 +9,6 @@
|
|||
// except according to those terms.
|
||||
|
||||
mod argparse {
|
||||
extern crate extra;
|
||||
|
||||
pub struct Flag<'a> {
|
||||
name: &'a str,
|
||||
desc: &'a str,
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
fn main() {
|
||||
trait seq { }
|
||||
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
// error-pattern: mismatched types
|
||||
|
||||
extern crate extra;
|
||||
|
||||
use std::task;
|
||||
|
||||
fn main() { task::spawn(|| -> int { 10 }); }
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
use extra; //~ ERROR unresolved import (maybe you meant `extra::*`?)
|
||||
extern crate collections;
|
||||
use collections; //~ ERROR unresolved import (maybe you meant `collections::*`?)
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
|
|
@ -8,12 +8,12 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
extern crate test;
|
||||
|
||||
fn f() {
|
||||
}
|
||||
|
||||
use extra::net; //~ ERROR `use` and `extern crate` declarations must precede items
|
||||
use test::net; //~ ERROR `use` and `extern crate` declarations must precede items
|
||||
|
||||
fn main() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,5 +9,4 @@
|
|||
// except according to those terms.
|
||||
|
||||
// error-pattern:moop
|
||||
extern crate extra;
|
||||
fn main() { fail!("moop"); }
|
||||
|
|
|
|||
|
|
@ -9,6 +9,5 @@
|
|||
// except according to those terms.
|
||||
|
||||
// error-pattern:meh
|
||||
extern crate extra;
|
||||
|
||||
fn main() { let str_var: ~str = ~"meh"; fail!("{}", str_var); }
|
||||
|
|
|
|||
|
|
@ -9,6 +9,5 @@
|
|||
// except according to those terms.
|
||||
|
||||
// error-pattern:moop
|
||||
extern crate extra;
|
||||
|
||||
fn main() { for _ in range(0u, 10u) { fail!("moop"); } }
|
||||
|
|
|
|||
|
|
@ -16,8 +16,6 @@
|
|||
// See the hack in upcall_call_shim_on_c_stack where it messes
|
||||
// with the stack limit.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
use std::libc;
|
||||
use std::task;
|
||||
|
||||
|
|
|
|||
|
|
@ -13,8 +13,6 @@
|
|||
|
||||
// Just testing unwinding
|
||||
|
||||
extern crate extra;
|
||||
|
||||
use std::task;
|
||||
|
||||
fn getbig_and_fail(i: int) {
|
||||
|
|
|
|||
|
|
@ -13,8 +13,6 @@
|
|||
|
||||
// Just testing unwinding
|
||||
|
||||
extern crate extra;
|
||||
|
||||
use std::task;
|
||||
|
||||
fn getbig_and_fail(i: int) {
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@
|
|||
// compile-flags:--test
|
||||
// check-stdout
|
||||
|
||||
extern crate extra;
|
||||
|
||||
mod m {
|
||||
pub fn exported() { }
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
#[feature(quote)];
|
||||
|
||||
extern crate extra;
|
||||
extern crate syntax;
|
||||
|
||||
use std::io::*;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// error-pattern:expected item
|
||||
|
||||
#[foo = "bar"]
|
||||
extern crate extra;
|
||||
extern crate test;
|
||||
|
||||
pub fn main() {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
mod m {
|
||||
#[foo = "bar"]
|
||||
extern crate extra;
|
||||
extern crate test;
|
||||
}
|
||||
|
||||
pub fn main() {
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
fn asSendfn(f: proc() -> uint) -> uint {
|
||||
return f();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
use std::task::spawn;
|
||||
|
||||
struct Pair {
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
/**
|
||||
* A function that returns a hash of a value
|
||||
*
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
extern crate mystd = "std";
|
||||
|
||||
pub fn main() {}
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
use std::num::Float;
|
||||
|
||||
pub fn main() {
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
mod libc {
|
||||
use std::libc::{c_char, size_t};
|
||||
|
||||
|
|
|
|||
|
|
@ -13,14 +13,13 @@
|
|||
|
||||
#[feature(macro_rules)];
|
||||
|
||||
extern crate extra;
|
||||
extern crate glob;
|
||||
|
||||
use glob::glob;
|
||||
use extra::tempfile::TempDir;
|
||||
use std::unstable::finally::Finally;
|
||||
use std::{os, unstable};
|
||||
use std::io;
|
||||
use std::io::TempDir;
|
||||
|
||||
macro_rules! assert_eq ( ($e1:expr, $e2:expr) => (
|
||||
if $e1 != $e2 {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@
|
|||
#[feature(globs)];
|
||||
#[allow(dead_assignment)];
|
||||
|
||||
extern crate extra;
|
||||
use std::vec::*;
|
||||
|
||||
pub fn main() {
|
||||
|
|
|
|||
|
|
@ -14,8 +14,6 @@
|
|||
*/
|
||||
// ignore-test
|
||||
|
||||
extern crate extra;
|
||||
|
||||
fn loopy(n: int) {
|
||||
if n > 0 { spawn(proc() { loopy(n - 1) }); spawn(proc() { loopy(n - 1) }); }
|
||||
loop { }
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@
|
|||
|
||||
#[feature(globs)];
|
||||
|
||||
extern crate extra;
|
||||
|
||||
mod rusti {
|
||||
extern "rust-intrinsic" {
|
||||
pub fn ctpop8(x: i8) -> i8;
|
||||
|
|
|
|||
|
|
@ -14,8 +14,6 @@
|
|||
|
||||
/// Map representation
|
||||
|
||||
extern crate extra;
|
||||
|
||||
use std::io;
|
||||
use std::fmt;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
use std::vec;
|
||||
|
||||
trait methods {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// except according to those terms.
|
||||
|
||||
// rustc --test ignores2.rs && ./ignores2
|
||||
extern crate extra;
|
||||
|
||||
use std::path::{Path};
|
||||
use std::path;
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
#[feature(managed_boxes)];
|
||||
|
||||
extern crate extra;
|
||||
|
||||
enum Token {
|
||||
Text(@~str),
|
||||
ETag(@~[~str], @~str),
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@
|
|||
// However the extra library is designed to be optional (for code that must run on constrained
|
||||
// environments like embedded devices or special environments like kernel code) so it must
|
||||
// be explicitly linked in.
|
||||
extern crate extra;
|
||||
|
||||
// Extern mod controls linkage. Use controls the visibility of names to modules that are
|
||||
// already linked in. Using WriterUtil allows us to use the write_line method.
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
#[allow(unnecessary_allocation)];
|
||||
|
||||
// rustc --test match_borrowed_str.rs.rs && ./match_borrowed_str.rs
|
||||
extern crate extra;
|
||||
|
||||
fn compare(x: &str, y: &str) -> bool
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
use std::task;
|
||||
|
||||
type RingBuffer = ~[f64];
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
#[attr3];
|
||||
#[attr4(attr5)];
|
||||
|
||||
#[crate_id="extra#0.1"];
|
||||
#[crate_id="foobar#0.1"];
|
||||
|
||||
// These are attributes of the following mod
|
||||
#[attr1 = "val"]
|
||||
|
|
@ -140,8 +140,6 @@ mod test_attr_inner_then_outer_multi {
|
|||
}
|
||||
|
||||
mod test_distinguish_syntax_ext {
|
||||
extern crate extra;
|
||||
|
||||
pub fn f() {
|
||||
format!("test{}", "s");
|
||||
#[attr = "val"]
|
||||
|
|
|
|||
|
|
@ -8,9 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
|
||||
extern crate extra;
|
||||
|
||||
fn foo<T>(y: Option<T>) {
|
||||
let mut x: int;
|
||||
let mut rs: ~[int] = ~[];
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
#[feature(managed_boxes)];
|
||||
|
||||
extern crate extra;
|
||||
|
||||
trait Serializer {
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@
|
|||
|
||||
// This test will call __morestack with various minimum stack sizes
|
||||
|
||||
extern crate extra;
|
||||
|
||||
use std::task;
|
||||
|
||||
fn getbig(i: int) {
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
#[deriving(Clone)]
|
||||
struct Triple {
|
||||
x: int,
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
#[feature(managed_boxes)];
|
||||
|
||||
extern crate extra;
|
||||
|
||||
struct Triple { x: int, y: int, z: int }
|
||||
|
||||
fn test(x: bool, foo: @Triple) -> int {
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
struct Triple {a: int, b: int, c: int}
|
||||
|
||||
fn test(foo: ~Triple) -> ~Triple {
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
#[feature(managed_boxes)];
|
||||
|
||||
extern crate extra;
|
||||
|
||||
struct Triple { a: int, b: int, c: int }
|
||||
|
||||
fn test(foo: @Triple) -> @Triple {
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
fn grow(v: &mut ~[int]) {
|
||||
v.push(1);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,10 +12,7 @@
|
|||
// This checks that preemption works.
|
||||
|
||||
// note: halfway done porting to modern rust
|
||||
extern crate extra;
|
||||
|
||||
use std::comm;
|
||||
use extra::comm;
|
||||
|
||||
fn starve_main(alive: Receiver<int>) {
|
||||
info!("signalling main");
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
// This test verifies that temporary lifetime is correctly computed
|
||||
// for static objects in enclosing scopes.
|
||||
|
||||
extern crate extra;
|
||||
use std::cmp::Eq;
|
||||
|
||||
fn f<T:Eq>(o: &mut Option<T>) {
|
||||
|
|
|
|||
|
|
@ -12,9 +12,8 @@
|
|||
// because it needs TempDir, which is in extra
|
||||
|
||||
// ignore-fast
|
||||
extern crate extra;
|
||||
|
||||
use extra::tempfile::TempDir;
|
||||
use std::io::TempDir;
|
||||
use std::os;
|
||||
use std::libc;
|
||||
use std::io;
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate extra;
|
||||
|
||||
use std::task;
|
||||
|
||||
pub fn main() {
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue