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:
Alex Crichton 2014-03-14 11:16:10 -07:00
parent e99d523707
commit 58e4ab2b33
158 changed files with 315 additions and 873 deletions

View file

@ -11,8 +11,6 @@
#[crate_id="issue_2526#0.2"];
#[crate_type = "lib"];
extern crate extra;
struct arc_destruct<T> {
_data: int,
}

View file

@ -12,7 +12,6 @@
#[crate_id="req"];
#[crate_type = "lib"];
extern crate extra;
extern crate collections;
use std::cell::RefCell;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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 {

View file

@ -10,8 +10,6 @@
// chameneos
extern crate extra;
use std::option;
use std::os;
use std::task;

View file

@ -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 {

View file

@ -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;

View file

@ -12,8 +12,6 @@
#[feature(managed_boxes)];
extern crate extra;
use std::io;
use std::io::stdio::StdReader;
use std::io::BufferedReader;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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)]

View file

@ -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)]

View file

@ -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)]

View file

@ -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)]

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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)]

View file

@ -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)]

View file

@ -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)]

View file

@ -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)]

View file

@ -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)]

View file

@ -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)]

View file

@ -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)]

View file

@ -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)]

View file

@ -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;

View file

@ -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;

View file

@ -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 {

View file

@ -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 {

View file

@ -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);

View file

@ -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);
}

View file

@ -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 {

View file

@ -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

View file

@ -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, }

View file

@ -12,7 +12,6 @@
#[feature(quote)];
extern crate extra;
extern crate syntax;
use io::*;

View file

@ -12,11 +12,8 @@
#[feature(quote)];
extern crate extra;
extern crate syntax;
use extra::io::*;
use syntax::diagnostic;
use syntax::ast;
use syntax::codemap;

View file

@ -9,8 +9,6 @@
// except according to those terms.
mod argparse {
extern crate extra;
pub struct Flag<'a> {
name: &'a str,
desc: &'a str,

View file

@ -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 { }

View file

@ -10,8 +10,6 @@
// error-pattern: mismatched types
extern crate extra;
use std::task;
fn main() { task::spawn(|| -> int { 10 }); }

View file

@ -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() {}

View file

@ -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() {
}

View file

@ -9,5 +9,4 @@
// except according to those terms.
// error-pattern:moop
extern crate extra;
fn main() { fail!("moop"); }

View file

@ -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); }

View file

@ -9,6 +9,5 @@
// except according to those terms.
// error-pattern:moop
extern crate extra;
fn main() { for _ in range(0u, 10u) { fail!("moop"); } }

View file

@ -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;

View file

@ -13,8 +13,6 @@
// Just testing unwinding
extern crate extra;
use std::task;
fn getbig_and_fail(i: int) {

View file

@ -13,8 +13,6 @@
// Just testing unwinding
extern crate extra;
use std::task;
fn getbig_and_fail(i: int) {

View file

@ -12,8 +12,6 @@
// compile-flags:--test
// check-stdout
extern crate extra;
mod m {
pub fn exported() { }

View file

@ -13,7 +13,6 @@
#[feature(quote)];
extern crate extra;
extern crate syntax;
use std::io::*;

View file

@ -11,7 +11,7 @@
// error-pattern:expected item
#[foo = "bar"]
extern crate extra;
extern crate test;
pub fn main() {
}

View file

@ -12,7 +12,7 @@
mod m {
#[foo = "bar"]
extern crate extra;
extern crate test;
}
pub fn main() {

View file

@ -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();
}

View file

@ -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 {

View file

@ -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
*

View file

@ -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() {}

View file

@ -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() {

View file

@ -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};

View file

@ -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 {

View file

@ -13,7 +13,6 @@
#[feature(globs)];
#[allow(dead_assignment)];
extern crate extra;
use std::vec::*;
pub fn main() {

View file

@ -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 { }

View file

@ -12,8 +12,6 @@
#[feature(globs)];
extern crate extra;
mod rusti {
extern "rust-intrinsic" {
pub fn ctpop8(x: i8) -> i8;

View file

@ -14,8 +14,6 @@
/// Map representation
extern crate extra;
use std::io;
use std::fmt;

View file

@ -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 {

View file

@ -11,7 +11,6 @@
// except according to those terms.
// rustc --test ignores2.rs && ./ignores2
extern crate extra;
use std::path::{Path};
use std::path;

View file

@ -10,8 +10,6 @@
#[feature(managed_boxes)];
extern crate extra;
enum Token {
Text(@~str),
ETag(@~[~str], @~str),

View file

@ -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.

View file

@ -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
{

View file

@ -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];

View file

@ -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"]

View file

@ -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] = ~[];

View file

@ -10,8 +10,6 @@
#[feature(managed_boxes)];
extern crate extra;
trait Serializer {
}

View file

@ -12,8 +12,6 @@
// This test will call __morestack with various minimum stack sizes
extern crate extra;
use std::task;
fn getbig(i: int) {

View file

@ -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,

View file

@ -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 {

View file

@ -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 {

View file

@ -10,8 +10,6 @@
#[feature(managed_boxes)];
extern crate extra;
struct Triple { a: int, b: int, c: int }
fn test(foo: @Triple) -> @Triple {

View file

@ -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);
}

View file

@ -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");

View file

@ -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>) {

View file

@ -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;

View file

@ -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