auto merge of #13020 : alexcrichton/rust/vec, r=brson
The commits have the details.
This commit is contained in:
commit
b568efc0cf
@ -13,7 +13,6 @@
|
||||
|
||||
#[allow(non_camel_case_types)];
|
||||
#[deny(warnings)];
|
||||
#[allow(deprecated_owned_vector)];
|
||||
|
||||
extern crate test;
|
||||
extern crate getopts;
|
||||
|
@ -24,7 +24,6 @@
|
||||
html_root_url = "http://static.rust-lang.org/doc/master")];
|
||||
#[allow(missing_doc)];
|
||||
#[feature(managed_boxes)];
|
||||
#[allow(deprecated_owned_vector)];
|
||||
|
||||
extern crate collections;
|
||||
|
||||
|
@ -25,7 +25,6 @@
|
||||
// NOTE remove the following two attributes after the next snapshot.
|
||||
#[allow(unrecognized_lint)];
|
||||
#[allow(default_type_param_usage)];
|
||||
#[allow(deprecated_owned_vector)];
|
||||
|
||||
extern crate rand;
|
||||
|
||||
|
@ -94,7 +94,6 @@ pub fn inflate_bytes_zlib(bytes: &[u8]) -> CVec<u8> {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[allow(deprecated_owned_vector)];
|
||||
extern crate rand;
|
||||
|
||||
use super::{inflate_bytes, deflate_bytes};
|
||||
|
@ -84,7 +84,6 @@
|
||||
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
||||
html_root_url = "http://static.rust-lang.org/doc/master")];
|
||||
#[deny(missing_doc)];
|
||||
#[allow(deprecated_owned_vector)];
|
||||
|
||||
#[feature(globs, phase)];
|
||||
|
||||
|
@ -30,7 +30,6 @@
|
||||
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
||||
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
||||
html_root_url = "http://static.rust-lang.org/doc/master")];
|
||||
#[allow(deprecated_owned_vector)];
|
||||
|
||||
use std::cell::Cell;
|
||||
use std::{cmp, os, path};
|
||||
|
@ -174,7 +174,6 @@
|
||||
// NB this does *not* include globs, please keep it that way.
|
||||
#[feature(macro_rules, phase)];
|
||||
#[allow(visible_private_types)];
|
||||
#[allow(deprecated_owned_vector)];
|
||||
|
||||
#[cfg(test)] #[phase(syntax, link)] extern crate log;
|
||||
extern crate rand;
|
||||
|
@ -9,7 +9,6 @@
|
||||
// except according to those terms.
|
||||
|
||||
use std::cmp;
|
||||
use std::vec::Vec;
|
||||
|
||||
#[deriving(Show, Clone)]
|
||||
pub struct LogDirective {
|
||||
|
@ -126,7 +126,6 @@ use std::local_data;
|
||||
use std::os;
|
||||
use std::rt;
|
||||
use std::slice;
|
||||
use std::vec::Vec;
|
||||
|
||||
use sync::one::{Once, ONCE_INIT};
|
||||
|
||||
|
@ -19,7 +19,6 @@ use std::libc;
|
||||
use std::mem;
|
||||
use std::rt::rtio;
|
||||
use std::slice;
|
||||
use std::vec::Vec;
|
||||
|
||||
use io::{IoResult, retry, keep_going};
|
||||
|
||||
|
@ -50,7 +50,6 @@
|
||||
html_root_url = "http://static.rust-lang.org/doc/master")];
|
||||
#[deny(unused_result, unused_must_use)];
|
||||
#[allow(non_camel_case_types)];
|
||||
#[allow(deprecated_owned_vector)];
|
||||
|
||||
// NB this crate explicitly does *not* allow glob imports, please seriously
|
||||
// consider whether they're needed before adding that feature here (the
|
||||
|
@ -29,7 +29,6 @@ use std::str;
|
||||
use std::uint;
|
||||
use std::{i64, u64};
|
||||
use std::vec;
|
||||
use std::vec::Vec;
|
||||
|
||||
/**
|
||||
A `BigDigit` is a `BigUint`'s composing element.
|
||||
@ -1461,7 +1460,6 @@ mod biguint_tests {
|
||||
use std::num::CheckedDiv;
|
||||
use rand::{task_rng};
|
||||
use std::u64;
|
||||
use std::vec::Vec;
|
||||
|
||||
#[test]
|
||||
fn test_from_slice() {
|
||||
@ -2195,7 +2193,6 @@ mod bigint_tests {
|
||||
use std::num::{ToPrimitive, FromPrimitive};
|
||||
use rand::{task_rng};
|
||||
use std::u64;
|
||||
use std::vec::Vec;
|
||||
|
||||
#[test]
|
||||
fn test_from_biguint() {
|
||||
|
@ -17,7 +17,6 @@
|
||||
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
||||
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
||||
html_root_url = "http://static.rust-lang.org/doc/master")];
|
||||
#[allow(deprecated_owned_vector)];
|
||||
|
||||
extern crate rand;
|
||||
|
||||
|
@ -16,7 +16,6 @@ use std::cmp;
|
||||
use std::fmt;
|
||||
use std::from_str::FromStr;
|
||||
use std::num::{Zero,One,ToStrRadix,FromStrRadix,Round};
|
||||
use std::vec::Vec;
|
||||
use bigint::{BigInt, BigUint, Sign, Plus, Minus};
|
||||
|
||||
/// Represents the ratio between 2 numbers.
|
||||
|
@ -71,7 +71,6 @@ println!("{:?}", tuple_ptr)
|
||||
html_root_url = "http://static.rust-lang.org/doc/master")];
|
||||
|
||||
#[feature(macro_rules, managed_boxes, phase)];
|
||||
#[allow(deprecated_owned_vector)];
|
||||
|
||||
#[cfg(test)]
|
||||
#[phase(syntax, link)] extern crate log;
|
||||
|
@ -16,7 +16,6 @@ use metadata::filesearch;
|
||||
use lib::llvm::{ArchiveRef, llvm};
|
||||
|
||||
use std::cast;
|
||||
use std::vec::Vec;
|
||||
use std::io;
|
||||
use std::io::{fs, TempDir};
|
||||
use std::libc;
|
||||
|
@ -33,7 +33,6 @@ use std::ptr;
|
||||
use std::str;
|
||||
use std::io;
|
||||
use std::io::{fs, TempDir, Process};
|
||||
use std::vec::Vec;
|
||||
use flate;
|
||||
use serialize::hex::ToHex;
|
||||
use syntax::abi;
|
||||
@ -105,7 +104,6 @@ pub mod write {
|
||||
use std::io::Process;
|
||||
use std::libc::{c_uint, c_int};
|
||||
use std::str;
|
||||
use std::vec::Vec;
|
||||
|
||||
// On android, we by default compile for armv7 processors. This enables
|
||||
// things like double word CAS instructions (rather than emulating them)
|
||||
|
@ -11,7 +11,6 @@
|
||||
use back::target_strs;
|
||||
use driver::session::sess_os_to_meta_os;
|
||||
use metadata::loader::meta_section_name;
|
||||
use std::vec::Vec;
|
||||
use syntax::abi;
|
||||
|
||||
pub fn get_target_strs(target_triple: ~str, target_os: abi::Os) -> target_strs::t {
|
||||
|
@ -15,7 +15,6 @@ use metadata::filesearch;
|
||||
|
||||
use collections::HashSet;
|
||||
use std::{os, slice};
|
||||
use std::vec::Vec;
|
||||
use syntax::abi;
|
||||
|
||||
fn not_win32(os: abi::Os) -> bool {
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
#[allow(non_camel_case_types)];
|
||||
|
||||
use std::vec::Vec;
|
||||
|
||||
pub struct t {
|
||||
module_asm: ~str,
|
||||
meta_sect_name: ~str,
|
||||
|
@ -37,7 +37,6 @@ use std::io::fs;
|
||||
use std::io::MemReader;
|
||||
use std::mem::drop;
|
||||
use std::os;
|
||||
use std::vec::Vec;
|
||||
use std::vec;
|
||||
use getopts::{optopt, optmulti, optflag, optflagopt};
|
||||
use getopts;
|
||||
|
@ -28,7 +28,6 @@ use syntax::{abi, ast, codemap};
|
||||
use syntax;
|
||||
|
||||
use std::cell::{Cell, RefCell};
|
||||
use std::vec::Vec;
|
||||
use collections::HashSet;
|
||||
|
||||
pub struct Config {
|
||||
@ -407,7 +406,7 @@ macro_rules! cgoptions(
|
||||
}
|
||||
}
|
||||
|
||||
fn parse_list(slot: &mut ::std::vec::Vec<~str>, v: Option<&str>)
|
||||
fn parse_list(slot: &mut Vec<~str>, v: Option<&str>)
|
||||
-> bool {
|
||||
match v {
|
||||
Some(s) => {
|
||||
|
@ -8,7 +8,6 @@
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use std::vec::Vec;
|
||||
use syntax::fold::Folder;
|
||||
use syntax::{ast, fold, attr};
|
||||
use syntax::codemap;
|
||||
|
@ -31,7 +31,6 @@ use syntax::parse::token;
|
||||
use driver::session::Session;
|
||||
|
||||
use std::cell::Cell;
|
||||
use std::vec::Vec;
|
||||
|
||||
/// This is a list of all known features since the beginning of time. This list
|
||||
/// can never shrink, it may only be expanded (in order to prevent old programs
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
use driver::session::Session;
|
||||
|
||||
use std::vec::Vec;
|
||||
use std::vec;
|
||||
use syntax::ast;
|
||||
use syntax::attr;
|
||||
|
@ -28,7 +28,6 @@ This API is completely unstable and subject to change.
|
||||
html_root_url = "http://static.rust-lang.org/doc/master")];
|
||||
|
||||
#[allow(deprecated)];
|
||||
#[allow(deprecated_owned_vector)];
|
||||
#[feature(macro_rules, globs, struct_variant, managed_boxes)];
|
||||
#[feature(quote, default_type_params, phase)];
|
||||
|
||||
@ -55,7 +54,6 @@ use std::io;
|
||||
use std::os;
|
||||
use std::str;
|
||||
use std::task;
|
||||
use std::vec::Vec;
|
||||
use std::vec;
|
||||
use syntax::ast;
|
||||
use syntax::diagnostic::Emitter;
|
||||
|
@ -23,7 +23,6 @@ use metadata::loader;
|
||||
use metadata::loader::Os;
|
||||
|
||||
use std::cell::RefCell;
|
||||
use std::vec::Vec;
|
||||
use collections::HashMap;
|
||||
use syntax::ast;
|
||||
use syntax::abi;
|
||||
|
@ -20,7 +20,6 @@ use middle::typeck;
|
||||
|
||||
use reader = serialize::ebml::reader;
|
||||
use std::rc::Rc;
|
||||
use std::vec::Vec;
|
||||
use std::vec;
|
||||
use syntax::ast;
|
||||
use syntax::ast_map;
|
||||
|
@ -18,7 +18,6 @@ use metadata::decoder;
|
||||
use metadata::loader;
|
||||
|
||||
use std::cell::RefCell;
|
||||
use std::vec::Vec;
|
||||
use std::c_vec::CVec;
|
||||
use collections::HashMap;
|
||||
use syntax::ast;
|
||||
|
@ -33,7 +33,6 @@ use std::io;
|
||||
use std::io::extensions::u64_from_be_bytes;
|
||||
use std::option;
|
||||
use std::rc::Rc;
|
||||
use std::vec::Vec;
|
||||
use serialize::ebml::reader;
|
||||
use serialize::ebml;
|
||||
use serialize::Decodable;
|
||||
|
@ -32,7 +32,6 @@ use std::hash;
|
||||
use std::hash::Hash;
|
||||
use std::io::MemWriter;
|
||||
use std::str;
|
||||
use std::vec::Vec;
|
||||
use collections::HashMap;
|
||||
use syntax::abi::AbiSet;
|
||||
use syntax::ast::*;
|
||||
|
@ -13,7 +13,6 @@
|
||||
use std::cell::RefCell;
|
||||
use std::os;
|
||||
use std::io::fs;
|
||||
use std::vec::Vec;
|
||||
use collections::HashSet;
|
||||
|
||||
pub enum FileMatch { FileMatches, FileDoesntMatch }
|
||||
|
@ -31,7 +31,6 @@ use std::io;
|
||||
use std::os::consts::{macos, freebsd, linux, android, win32};
|
||||
use std::str;
|
||||
use std::slice;
|
||||
use std::vec::Vec;
|
||||
|
||||
use collections::{HashMap, HashSet};
|
||||
use flate;
|
||||
|
@ -20,7 +20,6 @@ use middle::ty;
|
||||
|
||||
use std::str;
|
||||
use std::uint;
|
||||
use std::vec::Vec;
|
||||
use syntax::abi::AbiSet;
|
||||
use syntax::abi;
|
||||
use syntax::ast;
|
||||
|
@ -19,7 +19,6 @@ use std::io;
|
||||
use std::io::MemWriter;
|
||||
use std::str;
|
||||
use std::fmt;
|
||||
use std::vec::Vec;
|
||||
|
||||
use middle::ty::param_ty;
|
||||
use middle::ty;
|
||||
|
@ -37,7 +37,6 @@ use std::cast;
|
||||
use std::cell::RefCell;
|
||||
use std::io::Seek;
|
||||
use std::rc::Rc;
|
||||
use std::vec::Vec;
|
||||
|
||||
use serialize::ebml::reader;
|
||||
use serialize::ebml;
|
||||
|
@ -23,7 +23,6 @@ use middle::borrowck::*;
|
||||
use middle::moves;
|
||||
use middle::ty;
|
||||
use middle::typeck::MethodCall;
|
||||
use std::vec::Vec;
|
||||
use syntax::ast;
|
||||
use syntax::ast_util;
|
||||
use syntax::codemap::Span;
|
||||
|
@ -27,7 +27,6 @@ use middle::typeck::MethodCall;
|
||||
use util::common::indenter;
|
||||
use util::ppaux::{Repr};
|
||||
|
||||
use std::vec::Vec;
|
||||
use syntax::ast;
|
||||
use syntax::ast_util;
|
||||
use syntax::ast_util::IdRange;
|
||||
|
@ -12,7 +12,6 @@
|
||||
* Computes the restrictions that result from a borrow.
|
||||
*/
|
||||
|
||||
use std::vec::Vec;
|
||||
use std::vec;
|
||||
use middle::borrowck::*;
|
||||
use mc = middle::mem_categorization;
|
||||
|
@ -25,7 +25,6 @@ use std::cell::{Cell, RefCell};
|
||||
use collections::HashMap;
|
||||
use std::ops::{BitOr, BitAnd};
|
||||
use std::result::{Result};
|
||||
use std::vec::Vec;
|
||||
use syntax::ast;
|
||||
use syntax::ast_map;
|
||||
use syntax::ast_util;
|
||||
|
@ -17,7 +17,6 @@ comments in the section "Moves and initialization" and in `doc.rs`.
|
||||
|
||||
use std::cell::RefCell;
|
||||
use std::uint;
|
||||
use std::vec::Vec;
|
||||
use collections::{HashMap, HashSet};
|
||||
use middle::borrowck::*;
|
||||
use middle::dataflow::DataFlowContext;
|
||||
|
@ -12,7 +12,6 @@ use middle::cfg::*;
|
||||
use middle::graph;
|
||||
use middle::typeck;
|
||||
use middle::ty;
|
||||
use std::vec::Vec;
|
||||
use syntax::ast;
|
||||
use syntax::ast_util;
|
||||
use syntax::opt_vec;
|
||||
|
@ -15,7 +15,6 @@ use middle::ty;
|
||||
use middle::typeck;
|
||||
use util::ppaux;
|
||||
|
||||
use std::vec::Vec;
|
||||
use syntax::ast::*;
|
||||
use syntax::{ast_util, ast_map};
|
||||
use syntax::visit::Visitor;
|
||||
|
@ -21,7 +21,6 @@ use util::ppaux::ty_to_str;
|
||||
|
||||
use std::cmp;
|
||||
use std::iter;
|
||||
use std::vec::Vec;
|
||||
use std::vec;
|
||||
use syntax::ast::*;
|
||||
use syntax::ast_util::{unguarded_pat, walk_pat};
|
||||
|
@ -26,7 +26,6 @@ use syntax::{ast, ast_map, ast_util};
|
||||
use std::cell::RefCell;
|
||||
use collections::HashMap;
|
||||
use std::rc::Rc;
|
||||
use std::vec::Vec;
|
||||
|
||||
//
|
||||
// This pass classifies expressions by their constant-ness.
|
||||
|
@ -20,7 +20,6 @@
|
||||
use std::io;
|
||||
use std::uint;
|
||||
use std::slice;
|
||||
use std::vec::Vec;
|
||||
use syntax::ast;
|
||||
use syntax::ast_util;
|
||||
use syntax::ast_util::IdRange;
|
||||
|
@ -19,7 +19,6 @@ use middle::typeck;
|
||||
use util::nodemap::NodeSet;
|
||||
|
||||
use collections::HashSet;
|
||||
use std::vec::Vec;
|
||||
use syntax::ast;
|
||||
use syntax::ast_map;
|
||||
use syntax::ast_util::{local_def, def_id_of_def, is_local};
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
use driver::session;
|
||||
use driver::session::Session;
|
||||
use std::vec::Vec;
|
||||
use syntax::ast::{Crate, Name, NodeId, Item, ItemFn};
|
||||
use syntax::ast_map;
|
||||
use syntax::attr;
|
||||
|
@ -17,7 +17,6 @@ use middle::resolve;
|
||||
use middle::ty;
|
||||
use util::nodemap::{NodeMap, NodeSet};
|
||||
|
||||
use std::vec::Vec;
|
||||
use syntax::codemap::Span;
|
||||
use syntax::{ast, ast_util};
|
||||
use syntax::visit;
|
||||
|
@ -35,7 +35,6 @@ be indexed by the direction (see the type `Direction`).
|
||||
*/
|
||||
|
||||
use std::uint;
|
||||
use std::vec::Vec;
|
||||
|
||||
pub struct Graph<N,E> {
|
||||
priv nodes: Vec<Node<N>> ,
|
||||
|
@ -16,7 +16,6 @@ use middle::typeck;
|
||||
use util::ppaux::{Repr, ty_to_str};
|
||||
use util::ppaux::UserString;
|
||||
|
||||
use std::vec::Vec;
|
||||
use syntax::ast::*;
|
||||
use syntax::attr;
|
||||
use syntax::codemap::Span;
|
||||
|
@ -33,7 +33,6 @@ use syntax::visit;
|
||||
use collections::HashMap;
|
||||
use std::iter::Enumerate;
|
||||
use std::slice;
|
||||
use std::vec::Vec;
|
||||
|
||||
// The actual lang items defined come at the end of this file in one handy table.
|
||||
// So you probably just want to nip down to the end.
|
||||
|
@ -58,7 +58,6 @@ use std::u16;
|
||||
use std::u32;
|
||||
use std::u64;
|
||||
use std::u8;
|
||||
use std::vec::Vec;
|
||||
use collections::SmallIntMap;
|
||||
use syntax::ast_map;
|
||||
use syntax::ast_util::IdVisitingOperation;
|
||||
@ -405,7 +404,7 @@ static lint_table: &'static [(&'static str, LintSpec)] = &[
|
||||
LintSpec {
|
||||
lint: DeprecatedOwnedVector,
|
||||
desc: "use of a `~[T]` vector",
|
||||
default: warn
|
||||
default: allow,
|
||||
}),
|
||||
];
|
||||
|
||||
|
@ -116,7 +116,6 @@ use std::io;
|
||||
use std::rc::Rc;
|
||||
use std::str;
|
||||
use std::uint;
|
||||
use std::vec::Vec;
|
||||
use syntax::ast::*;
|
||||
use syntax::codemap::Span;
|
||||
use syntax::parse::token::special_idents;
|
||||
|
@ -66,7 +66,6 @@ use middle::ty;
|
||||
use middle::typeck;
|
||||
use util::ppaux::{ty_to_str, region_ptr_to_str, Repr};
|
||||
|
||||
use std::vec::Vec;
|
||||
use syntax::ast::{MutImmutable, MutMutable};
|
||||
use syntax::ast;
|
||||
use syntax::codemap::Span;
|
||||
|
@ -138,7 +138,6 @@ use util::ppaux::UserString;
|
||||
use util::nodemap::{NodeMap, NodeSet};
|
||||
|
||||
use std::rc::Rc;
|
||||
use std::vec::Vec;
|
||||
use syntax::ast::*;
|
||||
use syntax::ast_util;
|
||||
use syntax::visit;
|
||||
|
@ -12,7 +12,6 @@
|
||||
use middle::resolve;
|
||||
|
||||
use collections::HashMap;
|
||||
use std::vec::Vec;
|
||||
use syntax::ast::*;
|
||||
use syntax::ast_util::{path_to_ident, walk_pat};
|
||||
use syntax::codemap::Span;
|
||||
|
@ -13,7 +13,6 @@
|
||||
//! which are available for use externally when compiled as a library.
|
||||
|
||||
use std::mem::replace;
|
||||
use std::vec::Vec;
|
||||
|
||||
use metadata::csearch;
|
||||
use middle::lint;
|
||||
|
@ -20,7 +20,6 @@ use middle::typeck;
|
||||
use middle::privacy;
|
||||
use util::nodemap::NodeSet;
|
||||
|
||||
use std::vec::Vec;
|
||||
use collections::HashSet;
|
||||
use syntax::ast;
|
||||
use syntax::ast_map;
|
||||
|
@ -27,7 +27,6 @@ use middle::ty;
|
||||
use util::nodemap::NodeMap;
|
||||
|
||||
use std::cell::RefCell;
|
||||
use std::vec::Vec;
|
||||
use collections::{HashMap, HashSet};
|
||||
use syntax::codemap::Span;
|
||||
use syntax::{ast, visit};
|
||||
|
@ -34,7 +34,6 @@ use syntax::visit::Visitor;
|
||||
use std::cell::{Cell, RefCell};
|
||||
use std::uint;
|
||||
use std::mem::replace;
|
||||
use std::vec::Vec;
|
||||
use collections::{HashMap, HashSet};
|
||||
|
||||
// Definition mapping
|
||||
|
@ -18,7 +18,6 @@
|
||||
*/
|
||||
|
||||
use driver::session::Session;
|
||||
use std::vec::Vec;
|
||||
use util::nodemap::NodeMap;
|
||||
use syntax::ast;
|
||||
use syntax::codemap::Span;
|
||||
|
@ -16,7 +16,6 @@ use middle::ty_fold::TypeFolder;
|
||||
use util::ppaux::Repr;
|
||||
|
||||
use std::rc::Rc;
|
||||
use std::vec::Vec;
|
||||
use syntax::codemap::Span;
|
||||
use syntax::opt_vec::OptVec;
|
||||
|
||||
|
@ -225,7 +225,6 @@ use util::ppaux::{Repr, vec_map_to_str};
|
||||
|
||||
use collections::HashMap;
|
||||
use std::cell::Cell;
|
||||
use std::vec::Vec;
|
||||
use std::vec;
|
||||
use syntax::ast;
|
||||
use syntax::ast::Ident;
|
||||
|
@ -57,7 +57,6 @@ use middle::trans::type_::Type;
|
||||
use middle::trans::type_of;
|
||||
use middle::ty;
|
||||
use middle::ty::Disr;
|
||||
use std::vec::Vec;
|
||||
use std::vec;
|
||||
use syntax::abi::{X86, X86_64, Arm, Mips};
|
||||
use syntax::ast;
|
||||
|
@ -23,7 +23,6 @@ use middle::trans::type_of;
|
||||
use middle::trans::type_::Type;
|
||||
|
||||
use std::c_str::ToCStr;
|
||||
use std::vec::Vec;
|
||||
use syntax::ast;
|
||||
|
||||
// Take an inline assembly expression and splat it out via LLVM
|
||||
|
@ -76,7 +76,6 @@ use std::c_str::ToCStr;
|
||||
use std::cell::{Cell, RefCell};
|
||||
use std::libc::c_uint;
|
||||
use std::local_data;
|
||||
use std::vec::Vec;
|
||||
use syntax::abi::{X86, X86_64, Arm, Mips, Rust, RustIntrinsic, OsWin32};
|
||||
use syntax::ast_map::PathName;
|
||||
use syntax::ast_util::{local_def, is_local};
|
||||
|
@ -20,7 +20,6 @@ use middle::trans::type_::Type;
|
||||
|
||||
use collections::HashMap;
|
||||
use std::libc::{c_uint, c_ulonglong, c_char};
|
||||
use std::vec::Vec;
|
||||
use syntax::codemap::Span;
|
||||
|
||||
pub struct Builder<'a> {
|
||||
|
@ -16,7 +16,6 @@ use middle::trans::cabi_x86_64;
|
||||
use middle::trans::cabi_arm;
|
||||
use middle::trans::cabi_mips;
|
||||
use middle::trans::type_::Type;
|
||||
use std::vec::Vec;
|
||||
use syntax::abi::{X86, X86_64, Arm, Mips};
|
||||
|
||||
#[deriving(Clone, Eq)]
|
||||
|
@ -17,8 +17,6 @@ use middle::trans::context::CrateContext;
|
||||
use middle::trans::type_::Type;
|
||||
|
||||
use std::cmp;
|
||||
use std::option::{None, Some};
|
||||
use std::vec::Vec;
|
||||
|
||||
fn align_up_to(off: uint, a: uint) -> uint {
|
||||
return (off + a - 1u) / a * a;
|
||||
|
@ -18,8 +18,6 @@ use middle::trans::context::CrateContext;
|
||||
use middle::trans::cabi::*;
|
||||
use middle::trans::type_::Type;
|
||||
|
||||
use std::vec::Vec;
|
||||
|
||||
fn align_up_to(off: uint, a: uint) -> uint {
|
||||
return (off + a - 1u) / a * a;
|
||||
}
|
||||
|
@ -15,7 +15,6 @@ use super::cabi::*;
|
||||
use super::common::*;
|
||||
use super::machine::*;
|
||||
use middle::trans::type_::Type;
|
||||
use std::vec::Vec;
|
||||
|
||||
pub fn compute_abi_info(ccx: &CrateContext,
|
||||
atys: &[Type],
|
||||
|
@ -21,7 +21,6 @@ use middle::trans::context::CrateContext;
|
||||
use middle::trans::type_::Type;
|
||||
|
||||
use std::cmp;
|
||||
use std::vec::Vec;
|
||||
|
||||
#[deriving(Clone, Eq)]
|
||||
enum RegClass {
|
||||
|
@ -49,7 +49,6 @@ use util::ppaux::Repr;
|
||||
|
||||
use middle::trans::type_::Type;
|
||||
|
||||
use std::vec::Vec;
|
||||
use std::vec;
|
||||
use syntax::ast;
|
||||
use syntax::abi::AbiSet;
|
||||
|
@ -27,7 +27,6 @@ use util::ppaux::Repr;
|
||||
use util::ppaux::ty_to_str;
|
||||
|
||||
use arena::TypedArena;
|
||||
use std::vec::Vec;
|
||||
use syntax::ast;
|
||||
use syntax::ast_util;
|
||||
|
||||
|
@ -35,7 +35,6 @@ use collections::HashMap;
|
||||
use std::c_str::ToCStr;
|
||||
use std::cell::{Cell, RefCell};
|
||||
use std::libc::{c_uint, c_longlong, c_ulonglong, c_char};
|
||||
use std::vec::Vec;
|
||||
use syntax::ast::Ident;
|
||||
use syntax::ast;
|
||||
use syntax::ast_map::{PathElem, PathName};
|
||||
|
@ -33,7 +33,6 @@ use std::cell::{Cell, RefCell};
|
||||
use std::c_str::ToCStr;
|
||||
use std::libc::c_uint;
|
||||
use std::ptr;
|
||||
use std::vec::Vec;
|
||||
use collections::{HashMap, HashSet};
|
||||
use syntax::ast;
|
||||
use syntax::parse::token::InternedString;
|
||||
|
@ -149,7 +149,6 @@ use std::libc::{c_uint, c_ulonglong, c_longlong};
|
||||
use std::ptr;
|
||||
use std::sync::atomics;
|
||||
use std::slice;
|
||||
use std::vec::Vec;
|
||||
use syntax::codemap::{Span, Pos};
|
||||
use syntax::{abi, ast, codemap, ast_util, ast_map, opt_vec};
|
||||
use syntax::parse::token;
|
||||
|
@ -71,7 +71,6 @@ use middle::trans::machine::llsize_of;
|
||||
use middle::trans::type_::Type;
|
||||
|
||||
use std::slice;
|
||||
use std::vec::Vec;
|
||||
use syntax::ast;
|
||||
use syntax::codemap;
|
||||
use syntax::print::pprust::{expr_to_str};
|
||||
|
@ -27,7 +27,6 @@ use middle::ty::FnSig;
|
||||
use middle::ty;
|
||||
use std::cmp;
|
||||
use std::libc::c_uint;
|
||||
use std::vec::Vec;
|
||||
use syntax::abi::{Cdecl, Aapcs, C, AbiSet, Win64};
|
||||
use syntax::abi::{RustIntrinsic, Rust, Stdcall, Fastcall, System};
|
||||
use syntax::codemap::Span;
|
||||
|
@ -25,7 +25,6 @@ use middle::trans::machine;
|
||||
use middle::trans::machine::llsize_of;
|
||||
use middle::trans::type_::Type;
|
||||
use middle::ty;
|
||||
use std::vec::Vec;
|
||||
use syntax::ast;
|
||||
use syntax::ast_map;
|
||||
use syntax::parse::token;
|
||||
|
@ -34,7 +34,6 @@ use util::common::indenter;
|
||||
use util::ppaux::Repr;
|
||||
|
||||
use std::c_str::ToCStr;
|
||||
use std::vec::Vec;
|
||||
use std::vec;
|
||||
use syntax::parse::token;
|
||||
use syntax::{ast, ast_map, visit};
|
||||
|
@ -23,7 +23,6 @@ use middle::ty;
|
||||
use middle::typeck;
|
||||
use util::ppaux::Repr;
|
||||
|
||||
use std::vec::Vec;
|
||||
use syntax::ast;
|
||||
use syntax::ast_map;
|
||||
use syntax::ast_util::local_def;
|
||||
|
@ -27,8 +27,6 @@ use util::ppaux::ty_to_str;
|
||||
|
||||
use arena::TypedArena;
|
||||
use std::libc::c_uint;
|
||||
use std::option::{Some,None};
|
||||
use std::vec::Vec;
|
||||
use std::vec;
|
||||
use syntax::ast::DefId;
|
||||
use syntax::ast;
|
||||
|
@ -21,7 +21,6 @@ use syntax::abi::{X86, X86_64, Arm, Mips};
|
||||
use std::c_str::ToCStr;
|
||||
use std::cast;
|
||||
use std::slice;
|
||||
use std::vec::Vec;
|
||||
|
||||
use std::libc::{c_uint};
|
||||
|
||||
|
@ -19,7 +19,6 @@ use util::ppaux::Repr;
|
||||
|
||||
use middle::trans::type_::Type;
|
||||
|
||||
use std::vec::Vec;
|
||||
use syntax::ast;
|
||||
use syntax::opt_vec;
|
||||
|
||||
|
@ -40,7 +40,6 @@ use std::fmt;
|
||||
use std::hash::{Hash, sip};
|
||||
use std::ops;
|
||||
use std::rc::Rc;
|
||||
use std::vec::Vec;
|
||||
use std::vec;
|
||||
use collections::{HashMap, HashSet};
|
||||
use syntax::ast::*;
|
||||
|
@ -13,8 +13,6 @@
|
||||
use middle::ty;
|
||||
use util::ppaux::Repr;
|
||||
|
||||
use std::vec::Vec;
|
||||
|
||||
pub trait TypeFolder {
|
||||
fn tcx<'a>(&'a self) -> &'a ty::ctxt;
|
||||
|
||||
|
@ -60,7 +60,6 @@ use middle::typeck::rscope::{RegionScope};
|
||||
use middle::typeck::lookup_def_tcx;
|
||||
use util::ppaux::Repr;
|
||||
|
||||
use std::vec::Vec;
|
||||
use syntax::abi::AbiSet;
|
||||
use syntax::{ast, ast_util};
|
||||
use syntax::codemap::Span;
|
||||
|
@ -20,7 +20,6 @@ use middle::typeck::infer;
|
||||
use middle::typeck::require_same_types;
|
||||
|
||||
use collections::{HashMap, HashSet};
|
||||
use std::vec::Vec;
|
||||
use syntax::ast;
|
||||
use syntax::ast_util;
|
||||
use syntax::parse::token;
|
||||
|
@ -97,7 +97,6 @@ use util::ppaux::Repr;
|
||||
|
||||
use collections::HashSet;
|
||||
use std::result;
|
||||
use std::vec::Vec;
|
||||
use std::vec;
|
||||
use syntax::ast::{DefId, SelfValue, SelfRegion};
|
||||
use syntax::ast::{SelfUniq, SelfStatic};
|
||||
|
@ -15,7 +15,6 @@ use middle::ty_fold;
|
||||
use middle::ty_fold::TypeFolder;
|
||||
|
||||
use collections::HashMap;
|
||||
use std::vec::Vec;
|
||||
use util::ppaux::Repr;
|
||||
use util::ppaux;
|
||||
|
||||
|
@ -30,7 +30,6 @@ use util::ppaux::Repr;
|
||||
use collections::HashSet;
|
||||
use std::cell::RefCell;
|
||||
use std::result;
|
||||
use std::vec::Vec;
|
||||
use syntax::ast;
|
||||
use syntax::ast_util;
|
||||
use syntax::codemap::Span;
|
||||
|
@ -28,7 +28,6 @@ use middle::typeck::write_ty_to_tcx;
|
||||
use util::ppaux;
|
||||
use util::ppaux::Repr;
|
||||
|
||||
use std::vec::Vec;
|
||||
use syntax::ast;
|
||||
use syntax::codemap::Span;
|
||||
use syntax::print::pprust::pat_to_str;
|
||||
|
@ -48,7 +48,6 @@ use syntax::visit;
|
||||
use collections::HashSet;
|
||||
use std::cell::RefCell;
|
||||
use std::rc::Rc;
|
||||
use std::vec::Vec;
|
||||
use std::vec;
|
||||
|
||||
struct UniversalQuantificationResult {
|
||||
|
@ -46,7 +46,6 @@ use util::ppaux;
|
||||
use util::ppaux::Repr;
|
||||
|
||||
use std::rc::Rc;
|
||||
use std::vec::Vec;
|
||||
use std::vec;
|
||||
use collections::HashSet;
|
||||
|
||||
|
@ -63,7 +63,7 @@ use util::common::indent;
|
||||
use util::ppaux::Repr;
|
||||
|
||||
use std::result;
|
||||
use std::vec::Vec;
|
||||
|
||||
use syntax::ast::{Onceness, Purity};
|
||||
use syntax::ast;
|
||||
use syntax::opt_vec;
|
||||
|
@ -76,7 +76,6 @@ use middle::typeck::infer::region_inference::ProcessedErrors;
|
||||
use middle::typeck::infer::region_inference::SameRegions;
|
||||
use std::cell::{Cell, RefCell};
|
||||
use std::char::from_u32;
|
||||
use std::vec::Vec;
|
||||
use syntax::ast;
|
||||
use syntax::ast_map;
|
||||
use syntax::ast_util;
|
||||
|
@ -46,7 +46,6 @@ use middle::typeck::infer::to_str::InferStr;
|
||||
use util::common::indenter;
|
||||
|
||||
use collections::HashMap;
|
||||
use std::vec::Vec;
|
||||
|
||||
pub trait LatticeValue {
|
||||
fn sub(cf: &CombineFields, a: &Self, b: &Self) -> ures;
|
||||
|
@ -39,7 +39,6 @@ use middle::typeck::infer::unify::{ValsAndBindings, Root};
|
||||
use middle::typeck::infer::error_reporting::ErrorReporting;
|
||||
use std::cell::{Cell, RefCell};
|
||||
use std::result;
|
||||
use std::vec::Vec;
|
||||
use syntax::ast::{MutImmutable, MutMutable};
|
||||
use syntax::ast;
|
||||
use syntax::codemap;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user