Skip to content

Also run UnusedBrokenConst on associated consts.#70017

Closed
jumbatm wants to merge 11 commits intorust-lang:masterfrom
jumbatm:exceeding-bitshifts
Closed

Also run UnusedBrokenConst on associated consts.#70017
jumbatm wants to merge 11 commits intorust-lang:masterfrom
jumbatm:exceeding-bitshifts

Conversation

@jumbatm
Copy link
Contributor

@jumbatm jumbatm commented Mar 15, 2020

Fixes #69021.

Changes UnusedBrokenConst to also run on associated consts (when previously, it only ran on consts). Previously, if an associated const was unused, we would not end up linting the value, because const_prop (where check_{unary, binary}_op are run) would never reach the value.

r? @RalfJung

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"exceeding_bitshifts" lint does not work in associated consts

7 participants