Auto merge of #4384 - ivanbakel:unused_mut, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 9 Aug 2017 17:42:20 +0000 (17:42 +0000)
committerbors <bors@rust-lang.org>
Wed, 9 Aug 2017 17:42:20 +0000 (17:42 +0000)
Fixed some variables being unnecessarily mutable

### Changes

Some variables are marked `mut` when they don't need to be. This PR changes those variables to no longer be `mut`.

### Context

PR on https://github.com/rust-lang/rust/pull/43582

tl:dr; There's a bug with the mutability checker that sometimes marks mutable ref variables as being used when they're not.


Trivial merge