-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid warning unused_mut #50463
Comments
Thanks for reporting this @Boscop! Unfortunately, I can't reproduce this locally, can you give us a reduced snippet that causes the regression? |
Hm, this snippet causes the same warning on my machine (nightly 05-04) but not in the playground (nightly 05-07): I'm updating my nightly now to check with the most recent one.. |
Hm, even with the most recent nightly 05-07 I get that warning on my machine! |
That's strange, the snippet you provided also compiled fine on my local machine. Can you get the output of |
Hm, it's only when it's part of the larger project (where the warning first appeared). |
Is the project available somewhere so we can see which PR caused the regression? |
No, it's closed source (for my job) :/ |
Sure. If you hop into #rust-release on irc.mozilla.org and ping me I can guide you through bisecting the project yourself. |
@Boscop -- is this project by any chance using |
Were you ever able to bisect? The https://github.com/rust-lang-nursery/cargo-bisect-rustc tool might be useful to you. =) |
I can confirm that #![feature(nll)] produces said bug https://play.rust-lang.org/?gist=183af0c42d164e5434852c9e6ad81317&version=nightly&mode=debug |
cc @KiChjang -- quite likely another regression to track down |
Ah thanks! Yes, in the big project where it originally occurred I'm using |
I think I've encountered this as well at https://play.rust-lang.org/?gist=72cb9080cedd5cced73b23e8454344bd&version=nightly&mode=debug |
OK, this is not a regression then. |
I believe it's the same underlying cause as #50461. |
I just updated my nightly and now I'm getting this warning:
But it's invalid, the binding has to be mutable, otherwise:
The text was updated successfully, but these errors were encountered: