1
Fork 0

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 cur_scope = unwind.scope;
let mut target = unwind;
let mut quit = false;
let quit = false;
loop {
cur_scope = match cur_scope {
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 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",

View file

@ -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();