Skip to content
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

INSP: change RsVariableMutableInspection to a LintInspection #5588

Conversation

Kobzol
Copy link
Member

@Kobzol Kobzol commented Jun 16, 2020

This PR changes RsVariableMutableInspection, introduced in #1143, to a RsLintInspection and enables it by default.

I think that this inspection is incredibly useful. I have been using the Rust plugin for more than two years and I had no clue about its existence, so I think that it would be good if we enable it by default, at least in nightly builds for now, to gather possible false positives.

I'll try to find cases where false positives happen and try to fix them to make this inspection better. If you know about any one reason why this shouldn't be enabled by default except for false positives, let me know.

Fixes: #1004

@Kobzol Kobzol requested a review from artemmukhin June 16, 2020 14:01
@Kobzol Kobzol marked this pull request as draft June 16, 2020 14:15
@Kobzol
Copy link
Member Author

Kobzol commented Jul 14, 2020

Closing in favour of #5737.

@Kobzol Kobzol closed this Jul 14, 2020
@Kobzol Kobzol deleted the insp-enable-variable-mutable-inspection branch July 14, 2020 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Variable can be immutable intention
1 participant