auto merge of #7708 : bcully/rust/warnings, r=thestinger
Just getting my feet wet.
This commit is contained in:
commit
323ac9931b
|
@ -59,7 +59,6 @@ use middle::trans::type_of::*;
|
|||
use middle::ty;
|
||||
use util::common::indenter;
|
||||
use util::ppaux::{Repr, ty_to_str};
|
||||
use middle::pat_util;
|
||||
|
||||
use middle::trans::type_::Type;
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@ use std::vec;
|
|||
|
||||
use back::abi;
|
||||
use driver::session;
|
||||
use lib;
|
||||
use lib::llvm::ValueRef;
|
||||
use lib::llvm::llvm;
|
||||
use metadata::csearch;
|
||||
|
|
|
@ -29,7 +29,6 @@ use std::hash;
|
|||
use std::hashmap::{HashMap, HashSet};
|
||||
use std::str;
|
||||
use std::local_data;
|
||||
use extra::time;
|
||||
use syntax::ast;
|
||||
|
||||
use middle::trans::common::{mono_id,ExternMap,tydesc_info,BuilderRef_res,Stats};
|
||||
|
|
|
@ -248,7 +248,6 @@ pub fn trans_break_cont(bcx: block,
|
|||
let mut unwind = bcx;
|
||||
let mut cur_scope = unwind.scope;
|
||||
let mut target = unwind;
|
||||
let mut quit = false;
|
||||
loop {
|
||||
cur_scope = match cur_scope {
|
||||
Some(@scope_info {
|
||||
|
|
|
@ -100,7 +100,6 @@ use middle::trans::glue;
|
|||
use middle::trans::tvec;
|
||||
use middle::trans::type_of;
|
||||
use middle::trans::write_guard;
|
||||
use middle::trans::type_::Type;
|
||||
use middle::ty;
|
||||
use util::common::indenter;
|
||||
use util::ppaux::ty_to_str;
|
||||
|
|
|
@ -39,7 +39,6 @@ use middle::trans::type_::Type;
|
|||
use std::io;
|
||||
use std::libc::c_uint;
|
||||
use std::str;
|
||||
use extra::time;
|
||||
use syntax::ast;
|
||||
|
||||
pub fn trans_free(cx: block, v: ValueRef) -> block {
|
||||
|
|
|
@ -548,7 +548,7 @@ pub fn trans_trait_callee_from_llval(bcx: block,
|
|||
|
||||
let _icx = push_ctxt("impl::trans_trait_callee");
|
||||
let ccx = bcx.ccx();
|
||||
let mut bcx = bcx;
|
||||
let bcx = bcx;
|
||||
|
||||
// Load the vtable from the @Trait pair
|
||||
debug!("(translating trait callee) loading vtable from pair %s",
|
||||
|
|
|
@ -19,7 +19,6 @@ use middle::trans::glue;
|
|||
use middle::ty;
|
||||
use middle::trans::machine::llsize_of;
|
||||
use middle::trans::type_of;
|
||||
use middle::trans::type_of::*;
|
||||
|
||||
pub fn make_free_glue(bcx: block, vptrptr: ValueRef, box_ty: ty::t)
|
||||
-> block {
|
||||
|
|
|
@ -26,7 +26,9 @@ use option::{None, Option, Some};
|
|||
use ptr::to_unsafe_ptr;
|
||||
use ptr;
|
||||
use ptr::RawPtr;
|
||||
use rt::global_heap::{malloc_raw, realloc_raw};
|
||||
#[cfg(not(stage0))]
|
||||
use rt::global_heap::malloc_raw;
|
||||
use rt::global_heap::realloc_raw;
|
||||
use sys;
|
||||
use sys::size_of;
|
||||
use uint;
|
||||
|
|
|
@ -1074,7 +1074,7 @@ impl Parser {
|
|||
// This version of parse arg doesn't necessarily require
|
||||
// identifier names.
|
||||
pub fn parse_arg_general(&self, require_name: bool) -> arg {
|
||||
let mut is_mutbl = self.eat_keyword(keywords::Mut);
|
||||
let is_mutbl = self.eat_keyword(keywords::Mut);
|
||||
let pat = if require_name || self.is_named_argument() {
|
||||
self.parse_arg_mode();
|
||||
let pat = self.parse_pat();
|
||||
|
|
Loading…
Reference in New Issue