unnecessarily mutable variables
This commit is contained in:
@@ -248,7 +248,7 @@ 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;
|
||||
let quit = false;
|
||||
loop {
|
||||
cur_scope = match cur_scope {
|
||||
Some(@scope_info {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user