Fix many warnings.
This commit is contained in:
@@ -273,8 +273,8 @@ pub fn uv_error_to_io_error(uverr: UvError) -> IoError {
|
|||||||
ECONNREFUSED => ConnectionRefused,
|
ECONNREFUSED => ConnectionRefused,
|
||||||
ECONNRESET => ConnectionReset,
|
ECONNRESET => ConnectionReset,
|
||||||
EPIPE => BrokenPipe,
|
EPIPE => BrokenPipe,
|
||||||
e => {
|
_ => {
|
||||||
rtdebug!("e %u", e as uint);
|
rtdebug!("uverr.code %u", uverr.code as uint);
|
||||||
// XXX: Need to map remaining uv error types
|
// XXX: Need to map remaining uv error types
|
||||||
OtherIoError
|
OtherIoError
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
//! This module implements the check that the lifetime of a borrow
|
//! This module implements the check that the lifetime of a borrow
|
||||||
//! does not exceed the lifetime of the value being borrowed.
|
//! does not exceed the lifetime of the value being borrowed.
|
||||||
|
|
||||||
use core::prelude::*;
|
|
||||||
use middle::borrowck::*;
|
use middle::borrowck::*;
|
||||||
use mc = middle::mem_categorization;
|
use mc = middle::mem_categorization;
|
||||||
use middle::ty;
|
use middle::ty;
|
||||||
|
|||||||
@@ -16,8 +16,6 @@
|
|||||||
// their associated scopes. In phase two, checking loans, we will then make
|
// their associated scopes. In phase two, checking loans, we will then make
|
||||||
// sure that all of these loans are honored.
|
// sure that all of these loans are honored.
|
||||||
|
|
||||||
use core::prelude::*;
|
|
||||||
|
|
||||||
use middle::borrowck::*;
|
use middle::borrowck::*;
|
||||||
use mc = middle::mem_categorization;
|
use mc = middle::mem_categorization;
|
||||||
use middle::pat_util;
|
use middle::pat_util;
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
//! Computes the restrictions that result from a borrow.
|
//! Computes the restrictions that result from a borrow.
|
||||||
|
|
||||||
use core::prelude::*;
|
|
||||||
use middle::borrowck::*;
|
use middle::borrowck::*;
|
||||||
use mc = middle::mem_categorization;
|
use mc = middle::mem_categorization;
|
||||||
use middle::ty;
|
use middle::ty;
|
||||||
|
|||||||
@@ -10,8 +10,6 @@
|
|||||||
|
|
||||||
/*! See doc.rs for a thorough explanation of the borrow checker */
|
/*! See doc.rs for a thorough explanation of the borrow checker */
|
||||||
|
|
||||||
use core::prelude::*;
|
|
||||||
|
|
||||||
use mc = middle::mem_categorization;
|
use mc = middle::mem_categorization;
|
||||||
use middle::ty;
|
use middle::ty;
|
||||||
use middle::typeck;
|
use middle::typeck;
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
* GEN and KILL bits for each expression.
|
* GEN and KILL bits for each expression.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use core::prelude::*;
|
|
||||||
use core::cast;
|
use core::cast;
|
||||||
use core::uint;
|
use core::uint;
|
||||||
use syntax::ast;
|
use syntax::ast;
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ use util::ppaux::{Repr, ty_to_str};
|
|||||||
|
|
||||||
use core::libc::c_uint;
|
use core::libc::c_uint;
|
||||||
use syntax::{ast, ast_util, ast_map};
|
use syntax::{ast, ast_util, ast_map};
|
||||||
use util::ppaux::ty_to_str;
|
|
||||||
|
|
||||||
pub fn const_lit(cx: @CrateContext, e: @ast::expr, lit: ast::lit)
|
pub fn const_lit(cx: @CrateContext, e: @ast::expr, lit: ast::lit)
|
||||||
-> ValueRef {
|
-> ValueRef {
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ use middle::trans::type_of;
|
|||||||
use middle::ty::struct_fields;
|
use middle::ty::struct_fields;
|
||||||
use middle::ty::{AutoDerefRef, AutoAddEnv};
|
use middle::ty::{AutoDerefRef, AutoAddEnv};
|
||||||
use middle::ty::{AutoPtr, AutoBorrowVec, AutoBorrowVecRef, AutoBorrowFn,
|
use middle::ty::{AutoPtr, AutoBorrowVec, AutoBorrowVecRef, AutoBorrowFn,
|
||||||
AutoDerefRef, AutoAddEnv, AutoUnsafe};
|
AutoUnsafe};
|
||||||
use middle::ty;
|
use middle::ty;
|
||||||
use util::common::indenter;
|
use util::common::indenter;
|
||||||
use util::ppaux::Repr;
|
use util::ppaux::Repr;
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ use middle::typeck::infer::glb::Glb;
|
|||||||
use middle::typeck::infer::lub::Lub;
|
use middle::typeck::infer::lub::Lub;
|
||||||
use middle::typeck::infer::sub::Sub;
|
use middle::typeck::infer::sub::Sub;
|
||||||
use middle::typeck::infer::to_str::InferStr;
|
use middle::typeck::infer::to_str::InferStr;
|
||||||
use middle::typeck::infer::{cres, InferCtxt, ures, IntType, UintType};
|
use middle::typeck::infer::{cres, InferCtxt, ures};
|
||||||
use util::common::indent;
|
use util::common::indent;
|
||||||
|
|
||||||
use core::result::{iter_vec2, map_vec2};
|
use core::result::{iter_vec2, map_vec2};
|
||||||
|
|||||||
@@ -41,8 +41,6 @@ use middle::typeck::infer::glb::Glb;
|
|||||||
use middle::typeck::infer::lub::Lub;
|
use middle::typeck::infer::lub::Lub;
|
||||||
use middle::typeck::infer::unify::*;
|
use middle::typeck::infer::unify::*;
|
||||||
use middle::typeck::infer::sub::Sub;
|
use middle::typeck::infer::sub::Sub;
|
||||||
use middle::typeck::infer::lub::Lub;
|
|
||||||
use middle::typeck::infer::glb::Glb;
|
|
||||||
use middle::typeck::infer::to_str::InferStr;
|
use middle::typeck::infer::to_str::InferStr;
|
||||||
use util::common::indenter;
|
use util::common::indenter;
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ use rustc::driver::{driver, session};
|
|||||||
use rustc::metadata::filesearch;
|
use rustc::metadata::filesearch;
|
||||||
use std::getopts::groups::getopts;
|
use std::getopts::groups::getopts;
|
||||||
use std::semver;
|
use std::semver;
|
||||||
use std::{term, getopts};
|
use std::term;
|
||||||
use syntax::ast_util::*;
|
use syntax::ast_util::*;
|
||||||
use syntax::codemap::{dummy_sp, spanned, dummy_spanned};
|
use syntax::codemap::{dummy_sp, spanned, dummy_spanned};
|
||||||
use syntax::ext::base::{mk_ctxt, ext_ctxt};
|
use syntax::ext::base::{mk_ctxt, ext_ctxt};
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
* other useful things like `push()` and `len()`.
|
* other useful things like `push()` and `len()`.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use core::prelude::*;
|
|
||||||
use core::old_iter;
|
use core::old_iter;
|
||||||
use core::old_iter::BaseIter;
|
use core::old_iter::BaseIter;
|
||||||
|
|
||||||
|
|||||||
@@ -30,10 +30,10 @@ use ast::{expr_ret, expr_self, expr_struct, expr_tup, expr_unary};
|
|||||||
use ast::{expr_vec, expr_vstore, expr_vstore_mut_box};
|
use ast::{expr_vec, expr_vstore, expr_vstore_mut_box};
|
||||||
use ast::{expr_vstore_slice, expr_vstore_box};
|
use ast::{expr_vstore_slice, expr_vstore_box};
|
||||||
use ast::{expr_vstore_mut_slice, expr_while, extern_fn, field, fn_decl};
|
use ast::{expr_vstore_mut_slice, expr_while, extern_fn, field, fn_decl};
|
||||||
use ast::{expr_vstore_uniq, TyClosure, TyBareFn, Onceness, Once, Many};
|
use ast::{expr_vstore_uniq, Onceness, Once, Many};
|
||||||
use ast::{foreign_item, foreign_item_const, foreign_item_fn, foreign_mod};
|
use ast::{foreign_item, foreign_item_const, foreign_item_fn, foreign_mod};
|
||||||
use ast::{ident, impure_fn, inherited, item, item_, item_const};
|
use ast::{ident, impure_fn, inherited, item, item_, item_const};
|
||||||
use ast::{item_const, item_enum, item_fn, item_foreign_mod, item_impl};
|
use ast::{item_enum, item_fn, item_foreign_mod, item_impl};
|
||||||
use ast::{item_mac, item_mod, item_struct, item_trait, item_ty, lit, lit_};
|
use ast::{item_mac, item_mod, item_struct, item_trait, item_ty, lit, lit_};
|
||||||
use ast::{lit_bool, lit_float, lit_float_unsuffixed, lit_int};
|
use ast::{lit_bool, lit_float, lit_float_unsuffixed, lit_int};
|
||||||
use ast::{lit_int_unsuffixed, lit_nil, lit_str, lit_uint, local, m_const};
|
use ast::{lit_int_unsuffixed, lit_nil, lit_str, lit_uint, local, m_const};
|
||||||
|
|||||||
Reference in New Issue
Block a user