unnecessarily mutable variables

This commit is contained in:
Brendan Cully
2013-07-10 22:12:30 -07:00
parent e6e4f52bcf
commit 202fcb29bd
3 changed files with 3 additions and 3 deletions

View File

@@ -248,7 +248,7 @@ pub fn trans_break_cont(bcx: block,
let mut unwind = bcx; let mut unwind = bcx;
let mut cur_scope = unwind.scope; let mut cur_scope = unwind.scope;
let mut target = unwind; let mut target = unwind;
let mut quit = false; let quit = false;
loop { loop {
cur_scope = match cur_scope { cur_scope = match cur_scope {
Some(@scope_info { Some(@scope_info {

View File

@@ -548,7 +548,7 @@ pub fn trans_trait_callee_from_llval(bcx: block,
let _icx = push_ctxt("impl::trans_trait_callee"); let _icx = push_ctxt("impl::trans_trait_callee");
let ccx = bcx.ccx(); let ccx = bcx.ccx();
let mut bcx = bcx; let bcx = bcx;
// Load the vtable from the @Trait pair // Load the vtable from the @Trait pair
debug!("(translating trait callee) loading vtable from pair %s", debug!("(translating trait callee) loading vtable from pair %s",

View File

@@ -1074,7 +1074,7 @@ impl Parser {
// This version of parse arg doesn't necessarily require // This version of parse arg doesn't necessarily require
// identifier names. // identifier names.
pub fn parse_arg_general(&self, require_name: bool) -> arg { 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() { let pat = if require_name || self.is_named_argument() {
self.parse_arg_mode(); self.parse_arg_mode();
let pat = self.parse_pat(); let pat = self.parse_pat();