Remove unused imports throughout src/
This commit is contained in:
parent
55461d888f
commit
dfb5c10dea
214 changed files with 19 additions and 626 deletions
|
|
@ -8,7 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use core::either::*;
|
||||
enum X = Either<(uint,uint),extern fn()>;
|
||||
pub impl &X {
|
||||
fn with(blk: fn(x: &Either<(uint,uint),extern fn()>)) {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
//buggy.rs
|
||||
extern mod std;
|
||||
use std::oldmap::HashMap;
|
||||
use std::oldmap;
|
||||
|
||||
fn main() {
|
||||
let buggy_map :HashMap<uint, &uint> =
|
||||
|
|
|
|||
|
|
@ -1,9 +1,5 @@
|
|||
extern mod std;
|
||||
|
||||
use std::ebml::reader;
|
||||
use std::ebml::writer;
|
||||
use std::serialize;
|
||||
|
||||
fn main() {
|
||||
let foo = ~3;
|
||||
let _pfoo = &foo;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@
|
|||
// we let an impl method can have more permissive bounds than the trait
|
||||
// method it's implementing, the return type might be less specific than
|
||||
// needed. Just punt and make it invariant.
|
||||
use core::iter::BaseIter;
|
||||
|
||||
trait A {
|
||||
fn b<C:Copy + Const,D>(x: C) -> C;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
// Tests that an impl method's bounds aren't *more* restrictive
|
||||
// than the trait method it's implementing
|
||||
use core::iter::BaseIter;
|
||||
|
||||
trait A {
|
||||
fn b<C:Copy,D>(x: C) -> C;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
// Tests that ty params get matched correctly when comparing
|
||||
// an impl against a trait
|
||||
use core::iter::BaseIter;
|
||||
|
||||
trait A {
|
||||
fn b<C:Copy,D>(x: C) -> C;
|
||||
|
|
|
|||
|
|
@ -13,8 +13,6 @@
|
|||
// See middle::ty::type_contents() for more information.
|
||||
|
||||
extern mod std;
|
||||
use core::cmp::Ord;
|
||||
use core::option::swap_unwrap;
|
||||
|
||||
struct List { key: int, next: Option<~List> }
|
||||
|
||||
|
|
|
|||
|
|
@ -11,8 +11,6 @@
|
|||
mod argparse {
|
||||
extern mod std;
|
||||
|
||||
use core::either::{Either, Left, Right};
|
||||
|
||||
pub struct Flag {
|
||||
name: &str,
|
||||
desc: &str,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue