Fix many warnings.

This commit is contained in:
Steve Klabnik 2013-05-19 21:32:32 -07:00
parent 9283dfe0b4
commit d3f70b141a
13 changed files with 7 additions and 18 deletions

View file

@ -11,7 +11,6 @@
//! This module implements the check that the lifetime of a borrow
//! does not exceed the lifetime of the value being borrowed.
use core::prelude::*;
use middle::borrowck::*;
use mc = middle::mem_categorization;
use middle::ty;

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::*;
use mc = middle::mem_categorization;
use middle::pat_util;

View file

@ -10,7 +10,6 @@
//! Computes the restrictions that result from a borrow.
use core::prelude::*;
use middle::borrowck::*;
use mc = middle::mem_categorization;
use middle::ty;

View file

@ -10,8 +10,6 @@
/*! See doc.rs for a thorough explanation of the borrow checker */
use core::prelude::*;
use mc = middle::mem_categorization;
use middle::ty;
use middle::typeck;

View file

@ -16,7 +16,6 @@
* GEN and KILL bits for each expression.
*/
use core::prelude::*;
use core::cast;
use core::uint;
use syntax::ast;

View file

@ -27,7 +27,6 @@ use util::ppaux::{Repr, ty_to_str};
use core::libc::c_uint;
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)
-> ValueRef {

View file

@ -145,7 +145,7 @@ use middle::trans::type_of;
use middle::ty::struct_fields;
use middle::ty::{AutoDerefRef, AutoAddEnv};
use middle::ty::{AutoPtr, AutoBorrowVec, AutoBorrowVecRef, AutoBorrowFn,
AutoDerefRef, AutoAddEnv, AutoUnsafe};
AutoUnsafe};
use middle::ty;
use util::common::indenter;
use util::ppaux::Repr;

View file

@ -62,7 +62,7 @@ use middle::typeck::infer::glb::Glb;
use middle::typeck::infer::lub::Lub;
use middle::typeck::infer::sub::Sub;
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 core::result::{iter_vec2, map_vec2};

View file

@ -41,8 +41,6 @@ use middle::typeck::infer::glb::Glb;
use middle::typeck::infer::lub::Lub;
use middle::typeck::infer::unify::*;
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 util::common::indenter;