Make the unused_mut lint smarter with respect to locals.

Fixes #26332
This commit is contained in:
Ariel Ben-Yehuda
2015-06-18 01:02:58 +03:00
committed by Ariel Ben-Yehuda
parent 2f45294a50
commit a18d9842ed
7 changed files with 23 additions and 23 deletions

View File

@@ -598,7 +598,7 @@ impl<'a> StringReader<'a> {
/// Lex a LIT_INTEGER or a LIT_FLOAT
fn scan_number(&mut self, c: char) -> token::Lit {
let mut num_digits;
let num_digits;
let mut base = 10;
let start_bpos = self.last_pos;