Skip to content

Commit 202fcb2

Browse files
committed
unnecessarily mutable variables
1 parent e6e4f52 commit 202fcb2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/librustc/middle/trans/controlflow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ pub fn trans_break_cont(bcx: block,
248248
let mut unwind = bcx;
249249
let mut cur_scope = unwind.scope;
250250
let mut target = unwind;
251-
let mut quit = false;
251+
let quit = false;
252252
loop {
253253
cur_scope = match cur_scope {
254254
Some(@scope_info {

src/librustc/middle/trans/meth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ pub fn trans_trait_callee_from_llval(bcx: block,
548548

549549
let _icx = push_ctxt("impl::trans_trait_callee");
550550
let ccx = bcx.ccx();
551-
let mut bcx = bcx;
551+
let bcx = bcx;
552552

553553
// Load the vtable from the @Trait pair
554554
debug!("(translating trait callee) loading vtable from pair %s",

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ impl Parser {
10741074
// This version of parse arg doesn't necessarily require
10751075
// identifier names.
10761076
pub fn parse_arg_general(&self, require_name: bool) -> arg {
1077-
let mut is_mutbl = self.eat_keyword(keywords::Mut);
1077+
let is_mutbl = self.eat_keyword(keywords::Mut);
10781078
let pat = if require_name || self.is_named_argument() {
10791079
self.parse_arg_mode();
10801080
let pat = self.parse_pat();

0 commit comments

Comments
 (0)