Uh oh!
There was an error while loading. Please reload this page.
Make the unused_mut lint smarter - #26378
Conversation
bors
commented
Jun 20, 2015
☔ The latest upstream changes (presumably #24527) made this pull request unmergeable. Please resolve the merge conflicts. |
arielb1
commented
Jun 30, 2015
bump |
pnkfelix
commented
Jul 2, 2015
(I don't know if I agree that #26332 is actually a bug ... that is, I don't know if I like the idea of flagging that sort of code with a warning... but I'm willing to assume that it is for the purposes of completing this review) |
pnkfelix
commented
Jul 2, 2015
cc @rust-lang/lang |
pnkfelix
commented
Jul 2, 2015
(The cleanup commit looks fine to me; I am just hesistant to r-plus this PR without double-checking that others agree that this change to the lint in question is desirable.) |
nrc
commented
Jul 3, 2015
f+ on the principle here - it sounds like it is making the lint better, and I don't think lints count as a breaking change |
pnkfelix
commented
Jul 3, 2015
@nrc okay, my main concern was that someone who writes: letmut x;
...x = 3;may intend, in the long term, to add additional statements that assign to But I am willing to believe that the change here will help more than it hurts. Especially if it helps new-comers understand the idea that the "delayed single-assignment style" like above is not considered mutation by |
pnkfelix
commented
Jul 3, 2015
bors
commented
Jul 3, 2015
⌛ Testing commit a18d984 with merge 73165be... |
bors
commented
Jul 3, 2015
💔 Test failed - auto-mac-64-nopt-t |
alexcrichton
commented
Jul 3, 2015
@bors: retry On Fri, Jul 3, 2015 at 6:59 AM, bors notifications@github.com wrote:
|
bors
commented
Jul 3, 2015
⌛ Testing commit a18d984 with merge 728af15... |
bors
commented
Jul 3, 2015
💔 Test failed - auto-mac-64-nopt-t |
alexcrichton
commented
Jul 3, 2015
@bors: retry On Fri, Jul 3, 2015 at 12:59 PM, bors notifications@github.com wrote:
|
bors
commented
Jul 3, 2015
This makes it somewhat more aggressive, so this is kind-of a [breaking-change] for these compiling with `#[deny(unused_mut)]`. r? @pnkfelix
This makes it somewhat more aggressive, so this is kind-of a [breaking-change] for these compiling with
#[deny(unused_mut)].r? @pnkfelix