Skip to content

Commit

Permalink
unnecessarily mutable variables
Browse files Browse the repository at this point in the history
  • Loading branch information
bcully committed Jul 11, 2013
1 parent e6e4f52 commit 202fcb2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/librustc/middle/trans/controlflow.rs
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/middle/trans/meth.rs
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/libsyntax/parse/parser.rs
Expand Up @@ -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();
Expand Down

0 comments on commit 202fcb2

Please sign in to comment.