1
Fork 0

only use #[no_core] in libcore

This commit is contained in:
Daniel Micay 2013-04-26 12:24:15 -04:00
parent dd5b1de181
commit f792baba42
211 changed files with 6 additions and 810 deletions

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
#[deriving(Eq)]
pub enum mode {
mode_compile_fail,

View file

@ -10,14 +10,11 @@
#[crate_type = "bin"];
#[no_core];
#[allow(vecs_implicitly_copyable)];
#[allow(non_camel_case_types)];
#[allow(deprecated_mode)];
#[allow(deprecated_pattern)];
extern mod core(vers = "0.7-pre");
extern mod std(vers = "0.7-pre");
use core::*;

View file

@ -8,12 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use core::io;
use core::io::ReaderUtil;
use core::str;
pub struct ExpectedError { line: uint, kind: ~str, msg: ~str }
// Load any test directives embedded in the file

View file

@ -8,16 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use common;
use common::config;
use core::io::ReaderUtil;
use core::io;
use core::os;
use core::str;
pub struct TestProps {
// Lines that should be expected, in order, on standard out
error_patterns: ~[~str],

View file

@ -8,16 +8,10 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use core::io::{ReaderUtil, WriterUtil};
use core::io;
use core::libc::c_int;
use core::os;
use core::run::spawn_process;
use core::run;
use core::str;
use core::task;
#[cfg(target_os = "win32")]
fn target_env(lib_path: ~str, prog: ~str) -> ~[(~str,~str)] {

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use common::mode_run_pass;
use common::mode_run_fail;
use common::mode_compile_fail;
@ -22,13 +20,6 @@ use procsrv;
use util;
use util::logv;
use core::io::WriterUtil;
use core::io;
use core::os;
use core::str;
use core::uint;
use core::vec;
pub fn run(config: config, testfile: ~str) {
if config.verbose {
// We're going to be dumping a lot of info. Start on a new line.

View file

@ -8,11 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use common::config;
use core::io;
use core::os::getenv;
pub fn make_new_path(path: ~str) -> ~str {

View file

@ -17,7 +17,6 @@
#[comment = "The Rust fuzzer library"];
#[license = "MIT/ASL2"];
#[crate_type = "lib"];
#[no_core];
#[legacy_modes];
@ -26,12 +25,10 @@
#[allow(deprecated_mode)];
#[allow(deprecated_pattern)];
extern mod core(vers = "0.7-pre");
extern mod std(vers = "0.7-pre");
extern mod syntax(vers = "0.7-pre");
use core::*;
use core::io::WriterUtil;
use core::run;
use syntax::{ast, fold, visit, codemap};
use syntax::parse;

View file

@ -20,8 +20,6 @@
#[license = "MIT/ASL2"];
#[crate_type = "lib"];
extern mod core(vers = "0.7-pre");
use core::run;
enum ValidUsage {

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use back::rpath;
use driver::session::Session;
use driver::session;
@ -22,17 +20,12 @@ use middle::trans::common::CrateContext;
use middle::ty;
use util::ppaux;
use core::char;
use core::hash::Streaming;
use core::hash;
use core::io::WriterUtil;
use core::libc::{c_int, c_uint};
use core::os::consts::{macos, freebsd, linux, android, win32};
use core::os;
use core::ptr;
use core::run;
use core::str;
use core::vec;
use syntax::ast;
use syntax::ast_map::{path, path_mod, path_name};
use syntax::attr;
@ -98,10 +91,7 @@ pub mod jit {
use lib::llvm::{ModuleRef, PassManagerRef};
use metadata::cstore;
use core::cast;
use core::libc::c_int;
use core::ptr;
use core::str;
pub mod rusti {
#[nolink]
@ -183,10 +173,8 @@ pub mod write {
use lib::llvm::{False, ModuleRef, mk_pass_manager, mk_target_data};
use lib;
use core::prelude::*;
use core::libc::{c_int, c_uint};
use core::path::Path;
use core::str;
use core::run;
pub fn is_object_or_assembly_or_exe(ot: output_type) -> bool {

View file

@ -8,16 +8,11 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use driver::session;
use metadata::cstore;
use metadata::filesearch;
use core::os;
use core::uint;
use core::util;
use core::vec;
use core::hashmap::HashSet;
fn not_win32(os: session::os) -> bool {
@ -201,7 +196,6 @@ mod test {
// FIXME(#2119): the outer attribute should be #[cfg(unix, test)], then
// these redundant #[cfg(test)] blocks can be removed
#[cfg(test)]
use core::prelude::*;
#[cfg(test)]
use back::rpath::{get_absolute_rpath, get_install_prefix_rpath};
#[cfg(test)]

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use back::link;
use back::{arm, x86, x86_64, mips};
use driver::session::{Aggressive};
@ -893,8 +891,6 @@ pub fn list_metadata(sess: Session, path: &Path, out: @io::Writer) {
#[cfg(test)]
mod test {
use core::prelude::*;
use driver::driver::{build_configuration, build_session};
use driver::driver::{build_session_options, optgroups, str_input};

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use back::link;
use back::target_strs;
use back;

View file

@ -8,13 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use syntax::{ast, fold, attr};
use core::option;
use core::vec;
type in_cfg_pred = @fn(attrs: ~[ast::attribute]) -> bool;
struct Context {

View file

@ -8,11 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use driver::session::Session;
use core::vec;
use syntax::ast;
use syntax::attr;
use syntax::codemap;

View file

@ -8,15 +8,11 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use driver::session::Session;
use syntax::parse;
use syntax::ast;
use syntax::codemap::spanned;
use core::vec;
pub fn inject_intrinsic(sess: Session, crate: @ast::crate) -> @ast::crate {
let intrinsic_module = @(include_str!("intrinsic.rs").to_owned());

View file

@ -10,12 +10,9 @@
// Code that generates a test runner to run all the tests in a crate
use core::prelude::*;
use driver::session;
use front::config;
use core::vec;
use syntax::ast_util::*;
use syntax::attr;
use syntax::codemap::{dummy_sp, span, ExpandedFrom, CallInfo, NameAndSpan};

View file

@ -8,14 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use core::hashmap::HashMap;
use core::libc::c_uint;
use core::option;
use core::ptr;
use core::str;
use core::vec;
pub type Opcode = u32;
pub type Bool = c_uint;

View file

@ -11,15 +11,12 @@
//! Validates all used crates and extern libraries and loads their metadata
use core::prelude::*;
use metadata::cstore;
use metadata::decoder;
use metadata::filesearch::FileSearch;
use metadata::loader;
use core::hashmap::HashMap;
use core::vec;
use syntax::attr;
use syntax::codemap::{span, dummy_sp};
use syntax::diagnostic::span_handler;

View file

@ -8,18 +8,14 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// Searching for information from the cstore
use core::prelude::*;
use metadata::common::*;
use metadata::cstore;
use metadata::decoder;
use metadata;
use middle::{ty, resolve};
use core::vec;
use reader = std::ebml::reader;
use syntax::ast;
use syntax::ast_map;

View file

@ -12,13 +12,10 @@
// The crate store - a central repo for information collected about external
// crates and libraries
use core::prelude::*;
use metadata::cstore;
use metadata::decoder;
use core::hashmap::HashMap;
use core::vec;
use std;
use syntax::ast;
use syntax::parse::token::ident_interner;

View file

@ -8,11 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// Decoding metadata from a single crate's metadata
use core::prelude::*;
use metadata::cstore::crate_metadata;
use metadata::common::*;
use metadata::csearch::{ProvidedTraitMethodInfo, StaticMethodInfo};

View file

@ -8,11 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// Metadata encoding
use core::prelude::*;
use metadata::common::*;
use metadata::cstore;
use metadata::decoder;
@ -26,13 +23,6 @@ use util::ppaux::ty_to_str;
use core::flate;
use core::hash::HashUtil;
use core::hashmap::HashMap;
use core::int;
use core::io::{Writer, WriterUtil};
use core::io;
use core::str;
use core::to_bytes::IterBytes;
use core::uint;
use core::vec;
use std::serialize::Encodable;
use std;
use syntax::abi::AbiSet;

View file

@ -8,19 +8,10 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// A module for searching for libraries
// FIXME (#2658): I'm not happy how this module turned out. Should
// probably just be folded into cstore.
use core::prelude::*;
use core::option;
use core::os;
use core::result::Result;
use core::result;
use core::str;
pub type pick<'self, T> = &'self fn(path: &Path) -> Option<T>;
pub fn pick_file(file: Path, path: &Path) -> Option<Path> {

View file

@ -11,8 +11,6 @@
//! Finds crate binaries and loads their metadata
use core::prelude::*;
use lib::llvm::{False, llvm, mk_object_file, mk_section_iter};
use metadata::decoder;
use metadata::encoder;
@ -24,16 +22,8 @@ use syntax::parse::token::ident_interner;
use syntax::print::pprust;
use syntax::{ast, attr};
use core::cast;
use core::flate;
use core::io::WriterUtil;
use core::io;
use core::os::consts::{macos, freebsd, linux, android, win32};
use core::option;
use core::ptr;
use core::str;
use core::uint;
use core::vec;
pub enum os {
os_macos,

View file

@ -14,13 +14,8 @@
// tjc note: Would be great to have a `match check` macro equivalent
// for some of these
use core::prelude::*;
use middle::ty;
use core::str;
use core::uint;
use core::vec;
use syntax::abi::AbiSet;
use syntax::abi;
use syntax::ast;

View file

@ -8,11 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// Type encoding
use core::prelude::*;
use middle::ty::param_ty;
use middle::ty;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use c = metadata::common;
use cstore = metadata::cstore;
use driver::session::Session;

View file

@ -17,8 +17,6 @@
// 3. assignments do not affect things loaned out as immutable
// 4. moves do not affect things loaned out in any way
use core::prelude::*;
use middle::moves;
use middle::typeck::check::PurityState;
use middle::borrowck::{Loan, bckerr, BorrowckCtxt, inherent_mutability};
@ -33,7 +31,6 @@ use middle::ty;
use util::ppaux::ty_to_str;
use core::hashmap::HashSet;
use core::uint;
use core::util::with;
use syntax::ast::m_mutbl;
use syntax::ast;

View file

@ -16,8 +16,6 @@
// their associated scopes. In phase two, checking loans, we will then make
// sure that all of these loans are honored.
use core::prelude::*;
use middle::borrowck::preserve::{PreserveCondition, PcOk, PcIfPure};
use middle::borrowck::{Loan, bckerr, bckres, BorrowckCtxt, err_mutbl};
use middle::borrowck::{LoanKind, TotalFreeze, PartialFreeze,
@ -32,7 +30,6 @@ use util::common::indenter;
use util::ppaux::{Repr, region_to_str};
use core::hashmap::{HashSet, HashMap};
use core::vec;
use syntax::ast::{m_const, m_imm, m_mutbl};
use syntax::ast;
use syntax::codemap::span;

View file

@ -41,8 +41,6 @@ FIXME #4730 --- much more needed, don't have time to write this all up now
// Loan(Ex, M, S) = Ls holds if ToAddr(Ex) will remain valid for the entirety
// of the scope S, presuming that the returned set of loans `Ls` are honored.
use core::prelude::*;
use middle::borrowck::{Loan, bckerr, bckres, BorrowckCtxt, err_mutbl};
use middle::borrowck::{LoanKind, TotalFreeze, PartialFreeze,
TotalTake, PartialTake, Immobile};
@ -55,7 +53,6 @@ use middle::mem_categorization::{gc_ptr, region_ptr};
use middle::ty;
use util::common::indenter;
use core::result::{Err, Ok};
use syntax::ast::m_imm;
use syntax::ast;

View file

@ -224,8 +224,6 @@ Borrowck results in two maps.
given a memory location and not used as immediates.
*/
use core::prelude::*;
use middle::mem_categorization::*;
use middle::ty;
use middle::typeck;
@ -234,8 +232,6 @@ use util::common::stmt_set;
use util::ppaux::note_and_explain_region;
use core::hashmap::{HashSet, HashMap};
use core::io;
use core::result::{Result, Ok, Err};
use core::to_bytes;
use syntax::ast::{mutability, m_imm};
use syntax::ast;

View file

@ -13,8 +13,6 @@
// the scope S.
//
use core::prelude::*;
use middle::borrowck::{RootInfo, bckerr, bckerr_code, bckres, BorrowckCtxt};
use middle::borrowck::{err_mut_uniq, err_mut_variant};
use middle::borrowck::{err_out_of_root_scope, err_out_of_scope};

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use driver::session::Session;
use middle::resolve;
use middle::ty;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use middle::const_eval::{compare_const_vals, lookup_const_by_id};
use middle::const_eval::{eval_const_expr, const_val, const_bool};
use middle::pat_util::*;
@ -19,8 +17,6 @@ use middle::typeck::method_map;
use middle::moves;
use util::ppaux::ty_to_str;
use core::uint;
use core::vec;
use std::sort;
use syntax::ast::*;
use syntax::ast_util::{unguarded_pat, walk_pat};

View file

@ -8,15 +8,11 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use metadata::csearch;
use middle::astencode;
use middle::ty;
use middle;
use core::float;
use core::vec;
use syntax::{ast, ast_map, ast_util, visit};
use syntax::ast::*;

View file

@ -8,12 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// A pass that annotates for each loops and functions with the free
// variables that they contain.
use core::prelude::*;
use middle::resolve;
use middle::ty;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use middle::freevars::freevar_entry;
use middle::freevars;
use middle::liveness;

View file

@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// Detecting language items.
//
// Language items are items that represent concepts intrinsic to the language
@ -20,8 +19,6 @@
//
// * Functions called by the compiler itself.
use core::prelude::*;
use driver::session::Session;
use metadata::csearch::each_lang_item;
use metadata::cstore::iter_crate_data;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use driver::session::Session;
use driver::session;
use middle::ty;
@ -17,20 +15,6 @@ use middle::pat_util;
use util::ppaux::{ty_to_str};
use core::hashmap::HashMap;
use core::char;
use core::cmp;
use core::i8;
use core::i16;
use core::i32;
use core::i64;
use core::int;
use core::str;
use core::u8;
use core::u16;
use core::u32;
use core::u64;
use core::uint;
use core::vec;
use std::smallintmap::SmallIntMap;
use syntax::attr;
use syntax::codemap::span;

View file

@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
/*!
* A classic liveness analysis based on dataflow over the AST. Computes,
* for each local variable in a function, whether that variable is live
@ -103,7 +102,6 @@
* to return explicitly.
*/
use core::prelude::*;
use middle::lint::{unused_variable, dead_assignment};
use middle::pat_util;
@ -113,12 +111,6 @@ use middle::moves;
use util::ppaux::ty_to_str;
use core::hashmap::HashMap;
use core::io::WriterUtil;
use core::io;
use core::ptr;
use core::to_str;
use core::uint;
use core::vec;
use core::util::with;
use syntax::ast::*;
use syntax::codemap::span;

View file

@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
/*!
* # Categorization
*
@ -47,14 +46,11 @@
* then an index to jump forward to the relevant item.
*/
use core::prelude::*;
use middle::ty;
use middle::typeck;
use util::ppaux::{ty_to_str, region_to_str};
use util::common::indenter;
use core::uint;
use syntax::ast::{m_imm, m_const, m_mutbl};
use syntax::ast;
use syntax::codemap::span;

View file

@ -206,8 +206,6 @@ and so on.
*/
use core::prelude::*;
use middle::pat_util::{pat_bindings};
use middle::freevars;
use middle::ty;
@ -216,7 +214,6 @@ use util::ppaux;
use util::common::indenter;
use core::hashmap::{HashSet, HashMap};
use core::vec;
use syntax::ast::*;
use syntax::ast_util;
use syntax::visit;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use middle::resolve;
use core::hashmap::HashMap;

View file

@ -8,12 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// A pass that checks to make sure private fields and methods aren't used
// outside their scopes.
use core::prelude::*;
use metadata::csearch;
use middle::ty::{ty_struct, ty_enum};
use middle::ty;

View file

@ -17,8 +17,6 @@ region parameterized.
*/
use core::prelude::*;
use driver::session::Session;
use metadata::csearch;
use middle::resolve;
@ -27,7 +25,6 @@ use middle::ty::{rv_contravariant, FreeRegion};
use middle::ty;
use core::hashmap::{HashMap, HashSet};
use core::vec;
use syntax::ast_map;
use syntax::codemap::span;
use syntax::print::pprust;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use driver::session;
use driver::session::Session;
use metadata::csearch::{each_path, get_trait_method_def_ids};
@ -23,8 +21,6 @@ use middle::lint::{allow, level, unused_imports};
use middle::lint::{get_lint_level, get_lint_settings_level};
use middle::pat_util::pat_bindings;
use core::str;
use core::vec;
use syntax::ast::{RegionTyParamBound, TraitTyParamBound, _mod, add, arm};
use syntax::ast::{binding_mode, bitand, bitor, bitxor, blk};
use syntax::ast::{bind_infer, bind_by_ref, bind_by_copy};

View file

@ -10,7 +10,6 @@
// Type substitutions.
use core::prelude::*;
use middle::ty;
use util::ppaux::Repr;

View file

@ -142,8 +142,6 @@
*
*/
use core::prelude::*;
use back::abi;
use lib::llvm::{llvm, ValueRef, BasicBlockRef};
use middle::const_eval;

View file

@ -12,8 +12,6 @@
# Translation of inline assembly.
*/
use core::prelude::*;
use lib;
use middle::trans::build::*;
use middle::trans::callee;

View file

@ -23,8 +23,6 @@
// but many TypeRefs correspond to one ty::t; for instance, tup(int, int,
// int) and rec(x=int, y=int, z=int) will have the same TypeRef.
use core::prelude::*;
use back::link::{mangle_exported_name};
use back::{link, abi, upcall};
use driver::session;
@ -68,10 +66,7 @@ use util::ppaux;
use core::hash;
use core::hashmap::{HashMap, HashSet};
use core::int;
use core::io;
use core::libc::c_uint;
use core::uint;
use std::time;
use syntax::ast::ident;
use syntax::ast_map::{path, path_elt_to_str, path_name};

View file

@ -16,15 +16,8 @@ use lib;
use middle::trans::common::*;
use syntax::codemap::span;
use core::prelude::*;
use core::cast;
use core::hashmap::HashMap;
use core::libc::{c_uint, c_ulonglong, c_char};
use core::libc;
use core::option::Some;
use core::ptr;
use core::str;
use core::vec;
pub fn terminate(cx: block, _: &str) {
cx.terminated = true;
@ -174,7 +167,7 @@ pub fn IndirectBr(cx: block, Addr: ValueRef, NumDests: uint) {
// This is a really awful way to get a zero-length c-string, but better (and a
// lot more efficient) than doing str::as_c_str("", ...) every time.
pub fn noname() -> *libc::c_char {
pub fn noname() -> *c_char {
unsafe {
static cnull: uint = 0u;
return cast::transmute(ptr::addr_of(&cnull));
@ -618,7 +611,7 @@ pub fn StructGEP(cx: block, Pointer: ValueRef, Idx: uint) -> ValueRef {
}
}
pub fn GlobalString(cx: block, _Str: *libc::c_char) -> ValueRef {
pub fn GlobalString(cx: block, _Str: *c_char) -> ValueRef {
unsafe {
if cx.unreachable { return llvm::LLVMGetUndef(T_ptr(T_i8())); }
count_insn(cx, "globalstring");
@ -626,7 +619,7 @@ pub fn GlobalString(cx: block, _Str: *libc::c_char) -> ValueRef {
}
}
pub fn GlobalStringPtr(cx: block, _Str: *libc::c_char) -> ValueRef {
pub fn GlobalStringPtr(cx: block, _Str: *c_char) -> ValueRef {
unsafe {
if cx.unreachable { return llvm::LLVMGetUndef(T_ptr(T_i8())); }
count_insn(cx, "globalstringptr");

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::{ptr, vec, uint};
use core::option::*;
use core::libc::c_uint;
use lib::llvm::{llvm, TypeRef, Integer, Pointer, Float, Double};
use lib::llvm::{Struct, Array, Attribute};

View file

@ -9,7 +9,6 @@
// except according to those terms.
use driver::session::{os_win32, os_macos};
use core::option::*;
use lib::llvm::*;
use lib::llvm::llvm::*;
use super::cabi::*;

View file

@ -16,8 +16,6 @@
// and methods are represented as just a fn ptr and not a full
// closure.
use core::prelude::*;
use back::abi;
use driver::session;
use lib;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use back::abi;
use back::link::{mangle_internal_name_by_path_and_seq};
use lib::llvm::{llvm, ValueRef};

View file

@ -14,8 +14,6 @@
*/
use core::prelude::*;
use back::{abi, upcall};
use driver::session;
use driver::session::Session;
@ -43,15 +41,11 @@ use middle::ty;
use middle::typeck;
use util::ppaux::{Repr};
use core::cast;
use core::hash;
use core::hashmap::{HashMap, HashSet};
use core::libc::{c_uint, c_longlong, c_ulonglong};
use core::ptr;
use core::str;
use core::to_bytes;
use core::vec::raw::to_ptr;
use core::vec;
use syntax::ast::ident;
use syntax::ast_map::{path, path_elt};
use syntax::codemap::span;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use back::abi;
use lib::llvm::{llvm, SetLinkage, PrivateLinkage,
ValueRef, TypeRef, Bool, True, False};

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use back::link;
use lib;
use lib::llvm::*;
@ -24,7 +22,6 @@ use middle::ty;
use util::common::indenter;
use util::ppaux;
use core::str;
use syntax::ast;
use syntax::ast::ident;
use syntax::ast_map::path_mod;

View file

@ -85,8 +85,6 @@
* methods themselves. Most are only suitable for some types of
* values. */
use core::prelude::*;
use lib;
use lib::llvm::ValueRef;
use middle::borrowck::{RootInfo, root_map_key};
@ -106,7 +104,6 @@ use util::ppaux::ty_to_str;
use core::container::Set; // XXX: this should not be necessary
use core::to_bytes;
use core::uint;
use syntax::ast;
use syntax::parse::token::special_idents;

View file

@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use driver::session;
use lib::llvm::ValueRef;
@ -22,8 +21,6 @@ use util::ppaux::ty_to_str;
use core::hashmap::HashMap;
use core::libc;
use core::option;
use core::sys;
use syntax::codemap::span;
use syntax::parse::token::ident_interner;
use syntax::{ast, codemap, ast_util, ast_map};

View file

@ -119,8 +119,6 @@ lvalues are *never* stored by value.
*/
use core::prelude::*;
use back::abi;
use lib;
use lib::llvm::{ValueRef, TypeRef, llvm};

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use back::{link, abi};
use lib::llvm::{SequentiallyConsistent, Acquire, Release, Xchg};
use lib::llvm::{TypeRef, ValueRef};

View file

@ -12,8 +12,6 @@
//
// Code relating to taking, dropping, etc as well as type descriptors.
use core::prelude::*;
use back::abi;
use back::link::*;
use driver::session;
@ -35,9 +33,7 @@ use middle::ty;
use util::ppaux;
use util::ppaux::ty_to_short_str;
use core::io;
use core::libc::c_uint;
use core::str;
use std::time;
use syntax::ast;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use metadata::csearch;
use middle::astencode;
use middle::trans::base::{get_insn_ctxt};
@ -19,7 +17,6 @@ use middle::trans::common::*;
use middle::ty;
use util::ppaux::ty_to_str;
use core::vec;
use syntax::ast;
use syntax::ast_map::path_name;
use syntax::ast_util::local_def;

View file

@ -10,8 +10,6 @@
// Information concerning the machine representation of various types.
use core::prelude::*;
use lib::llvm::{ValueRef, TypeRef};
use lib::llvm::False;
use lib::llvm::llvm;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use back::abi;
use lib::llvm::llvm;
use lib::llvm::ValueRef;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use back::link::mangle_exported_name;
use driver::session;
use lib::llvm::ValueRef;
@ -32,7 +30,6 @@ use middle::ty::{FnSig};
use middle::typeck;
use util::ppaux::Repr;
use core::vec;
use syntax::ast;
use syntax::ast_map;
use syntax::ast_map::path_name;

View file

@ -20,7 +20,6 @@ use middle::resolve;
use middle::ty;
use middle::typeck;
use core::prelude::*;
use core::hashmap::HashSet;
use syntax::ast;
use syntax::ast::*;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use lib::llvm::llvm;
use lib::llvm::{TypeRef};
use middle::trans::adt;
@ -19,7 +17,6 @@ use middle::trans::common;
use middle::ty;
use util::ppaux;
use core::option::None;
use syntax::ast;
pub fn arg_is_indirect(ccx: @CrateContext, arg: &ty::arg) -> bool {

View file

@ -27,8 +27,6 @@
// much information, but have the disadvantage of being very
// invasive.)
use core::prelude::*;
use middle::freevars;
use middle::trans::common::*;
use middle::trans::inline;

View file

@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use driver::session;
use metadata::csearch;
@ -29,15 +28,8 @@ use util::ppaux::Repr;
use util::common::{indenter};
use core;
use core::cast;
use core::cmp;
use core::ops;
use core::ptr::to_unsafe_ptr;
use core::result::Result;
use core::result;
use core::to_bytes;
use core::uint;
use core::vec;
use core::hashmap::{HashMap, HashSet};
use std::smallintmap::SmallIntMap;
use syntax::ast::*;

View file

@ -52,8 +52,6 @@
* an rptr (`&r.T`) use the region `r` that appears in the rptr.
*/
use core::prelude::*;
use middle::const_eval;
use middle::ty::{arg, substs};
use middle::ty::{ty_param_substs_and_ty};
@ -62,8 +60,6 @@ use middle::typeck::rscope::in_binding_rscope;
use middle::typeck::rscope::{region_scope, RegionError};
use middle::typeck::rscope::RegionParamNames;
use core::result;
use core::vec;
use syntax::abi::AbiSet;
use syntax::{ast, ast_util};
use syntax::codemap::span;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use middle::pat_util::{PatIdMap, pat_id_map, pat_is_binding, pat_is_const};
use middle::ty;
use middle::typeck::check::demand;
@ -19,7 +17,6 @@ use middle::typeck::check::{structure_of, valid_range_bounds};
use middle::typeck::require_same_types;
use core::hashmap::{HashMap, HashSet};
use core::vec;
use syntax::ast;
use syntax::ast_util;
use syntax::codemap::span;

View file

@ -79,8 +79,6 @@ obtained the type `Foo`, we would never match this method.
*/
use core::prelude::*;
use middle::resolve;
use middle::ty::*;
use middle::ty;
@ -96,9 +94,6 @@ use middle::typeck::check::regionmanip::replace_bound_regions_in_fn_sig;
use util::common::indenter;
use core::hashmap::HashSet;
use core::result;
use core::uint;
use core::vec;
use std::list::Nil;
use syntax::ast::{def_id, sty_value, sty_region, sty_box};
use syntax::ast::{sty_uniq, sty_static, node_id, by_copy, by_ref};

View file

@ -76,8 +76,6 @@ type parameter).
*/
use core::prelude::*;
use middle::const_eval;
use middle::pat_util::pat_id_map;
use middle::pat_util;
@ -110,11 +108,6 @@ use util::ppaux::{bound_region_to_str};
use util::ppaux;
use core::hashmap::HashMap;
use core::ptr;
use core::result::{Result, Ok, Err};
use core::result;
use core::str;
use core::vec;
use core::util::replace;
use std::list::Nil;
use syntax::abi::AbiSet;

View file

@ -27,8 +27,6 @@ this point a bit better.
*/
use core::prelude::*;
use middle::freevars::get_freevars;
use middle::pat_util::pat_bindings;
use middle::ty::{re_scope};
@ -41,7 +39,6 @@ use middle::typeck::infer::resolve_type;
use util::ppaux::{note_and_explain_region, ty_to_str,
region_to_str};
use core::result;
use syntax::ast::{ManagedSigil, OwnedSigil, BorrowedSigil};
use syntax::ast::{def_arg, def_binding, def_local, def_self, def_upvar};
use syntax::ast;
@ -688,7 +685,6 @@ pub mod guarantor {
* but more special purpose.
*/
use core::prelude::*;
use middle::typeck::check::regionck::{Rcx, infallibly_mk_subr};
use middle::ty;
use syntax::ast;

View file

@ -10,8 +10,6 @@
// #[warn(deprecated_mode)];
use core::prelude::*;
use middle::ty;
use middle::typeck::isr_alist;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use middle::resolve::Impl;
use middle::ty::param_ty;
use middle::ty;
@ -25,9 +23,6 @@ use util::common::indenter;
use util::ppaux::tys_to_str;
use util::ppaux;
use core::result::{Ok, Err};
use core::result;
use core::uint;
use core::hashmap::HashSet;
use syntax::ast;
use syntax::ast_util;

View file

@ -12,8 +12,6 @@
// unresolved type variables and replaces "ty_var" types with their
// substitutions.
use core::prelude::*;
use middle::pat_util;
use middle::ty::arg;
use middle::ty;
@ -27,8 +25,6 @@ use middle::typeck::write_substs_to_tcx;
use middle::typeck::write_ty_to_tcx;
use util::ppaux;
use core::result::{Ok, Err};
use core::vec;
use syntax::ast;
use syntax::codemap::span;
use syntax::print::pprust::pat_to_str;

View file

@ -14,7 +14,6 @@
// has at most one implementation for each type. Then we build a mapping from
// each trait in the system to its implementations.
use core::prelude::*;
use driver;
use metadata::csearch::{each_path, get_impl_traits};

View file

@ -30,8 +30,6 @@ are represented as `ty_param()` instances.
*/
use core::prelude::*;
use metadata::csearch;
use middle::ty::{substs, ty_param_bounds_and_ty};
use middle::ty;
@ -46,7 +44,6 @@ use middle::typeck::{CrateCtxt, lookup_def_tcx, no_params, write_ty_to_tcx};
use util::common::{indenter, pluralize};
use util::ppaux;
use core::vec;
use syntax::abi::AbiSet;
use syntax::ast::{RegionTyParamBound, TraitTyParamBound};
use syntax::ast;

View file

@ -64,8 +64,6 @@ we may want to adjust precisely when coercions occur.
*/
use core::prelude::*;
use middle::ty::{AutoPtr, AutoBorrowVec, AutoBorrowFn};
use middle::ty::{AutoDerefRef, AutoRef};
use middle::ty::{vstore_slice, vstore_box, vstore_uniq};

View file

@ -54,8 +54,6 @@
// terms of error reporting, although we do not do that properly right
// now.
use core::prelude::*;
use middle::ty::{FloatVar, FnSig, IntVar, TyVar};
use middle::ty::{IntType, UintType, arg, substs};
use middle::ty;
@ -67,7 +65,6 @@ use middle::typeck::infer::{cres, InferCtxt, ures, IntType, UintType};
use util::common::indent;
use core::result::{iter_vec2, map_vec2};
use core::vec;
use syntax::ast::{Onceness, purity};
use syntax::ast;
use syntax::opt_vec;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use middle::ty::RegionVid;
use middle::ty;
use middle::typeck::infer::combine::*;

View file

@ -32,8 +32,6 @@
* a lattice.
*/
use core::prelude::*;
use middle::ty::{RegionVid, TyVar, Vid};
use middle::ty;
use middle::typeck::isr_alist;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use middle::ty::RegionVid;
use middle::ty;
use middle::typeck::infer::combine::*;

View file

@ -242,8 +242,6 @@ section on "Type Combining" below for details.
*/
use core::prelude::*;
pub use middle::ty::IntVarValue;
pub use middle::typeck::infer::resolve::resolve_and_force_all_but_regions;
pub use middle::typeck::infer::resolve::{force_all, not_regions};
@ -267,10 +265,6 @@ use middle::typeck::isr_alist;
use util::common::indent;
use util::ppaux::{bound_region_to_str, ty_to_str, trait_ref_to_str};
use core::cmp::Eq;
use core::result::{Result, Ok, Err};
use core::result;
use core::vec;
use std::list::Nil;
use std::smallintmap::SmallIntMap;
use syntax::ast::{m_imm, m_mutbl};

View file

@ -536,8 +536,6 @@ more convincing in the future.
*/
use core::prelude::*;
use middle::ty;
use middle::ty::{FreeRegion, Region, RegionVid};
use middle::ty::{re_static, re_infer, re_free, re_bound};
@ -548,10 +546,7 @@ use util::ppaux::note_and_explain_region;
use core::cell::{Cell, empty_cell};
use core::hashmap::{HashMap, HashSet};
use core::result::{Err, Ok};
use core::to_bytes;
use core::uint;
use core::vec;
use syntax::codemap::span;
use syntax::ast;

View file

@ -46,8 +46,6 @@
// future). If you want to resolve everything but one type, you are
// probably better off writing `resolve_all - resolve_ivar`.
use core::prelude::*;
use middle::ty::{FloatVar, FloatVid, IntVar, IntVid, RegionVid, TyVar, TyVid};
use middle::ty::{type_is_bot, IntType, UintType};
use middle::ty;
@ -60,8 +58,6 @@ use util::ppaux::ty_to_str;
use syntax::ast;
use core::vec;
pub static resolve_nested_tvar: uint = 0b0000000001;
pub static resolve_rvar: uint = 0b0000000010;
pub static resolve_ivar: uint = 0b0000000100;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use middle::ty;
use middle::ty::TyVar;
use middle::typeck::check::regionmanip::replace_bound_regions_in_fn_sig;
@ -29,7 +27,6 @@ use syntax::ast;
use syntax::ast::{Onceness, m_const, purity};
use syntax::codemap::span;
pub struct Sub(CombineFields); // "subtype", "subregion" etc
impl Combine for Sub {

View file

@ -16,8 +16,6 @@ Note: This module is only compiled when doing unit testing.
*/
use core::prelude::*;
use driver::diagnostic;
use driver::driver::{optgroups, build_session_options, build_session};
use driver::driver::{str_input, build_configuration};

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use middle::ty::{FnSig, Vid};
use middle::ty::IntVarValue;
use middle::ty;
@ -20,9 +18,6 @@ use util::ppaux::{mt_to_str, ty_to_str, trait_ref_to_str};
use syntax::ast;
use core::uint;
use core::str;
pub trait InferStr {
fn inf_str(&self, cx: &InferCtxt) -> ~str;
}

View file

@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use std::smallintmap::SmallIntMap;
use middle::ty::{Vid, expected_found, IntVarValue};

View file

@ -48,8 +48,6 @@ independently:
*/
use core::prelude::*;
use driver::session;
use middle::resolve;
@ -59,8 +57,6 @@ use util::ppaux::Repr;
use util::ppaux;
use core::hashmap::HashMap;
use core::result;
use core::vec;
use std::list::List;
use std::list;
use syntax::codemap::span;

View file

@ -8,12 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use middle::ty;
use core::result::Result;
use core::result;
use syntax::ast;
use syntax::codemap::span;
use syntax::opt_vec::OptVec;

View file

@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[link(name = "rustc",
vers = "0.7-pre",
uuid = "0ce89b41-2f92-459e-bbc1-8f5fe32f16cf",
@ -23,13 +22,9 @@
#[deny(deprecated_pattern)];
#[deny(deprecated_mode)];
#[no_core];
extern mod core(vers = "0.7-pre");
extern mod std(vers = "0.7-pre");
extern mod syntax(vers = "0.7-pre");
use core::prelude::*;
use driver::driver::{host_triple, optgroups, early_error};
use driver::driver::{str_input, file_input, build_session_options};
@ -39,8 +34,6 @@ use driver::driver::{compile_input};
use driver::session;
use middle::lint;
use core::io::ReaderUtil;
use core::result::{Ok, Err};
use std::getopts::{groups, opt_present};
use std::getopts;
use syntax::codemap;

View file

@ -8,14 +8,11 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use syntax::ast;
use syntax::codemap::{span};
use syntax::visit;
use core::hashmap::HashSet;
use core::str;
use std;
pub fn time<T>(do_it: bool, what: ~str, thunk: &fn() -> T) -> T {

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use core::prelude::*;
use middle::ty;
use middle::typeck;
use middle::ty::canon_mode;
@ -33,9 +31,6 @@ use syntax::{ast, ast_util};
use syntax::ast_map;
use syntax::abi::AbiSet;
use core::str;
use core::vec;
pub trait Repr {
fn repr(&self, tcx: ctxt) -> ~str;
}

View file

@ -17,8 +17,6 @@ query AST-related information, shielding the rest of Rustdoc from its
non-sendableness.
*/
use core::prelude::*;
use parse;
use core::cell::Cell;

Some files were not shown because too many files have changed in this diff Show more