-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat: #[clippy::ignore_interior_mutability]
attribute
#15844
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
base: master
Are you sure you want to change the base?
Conversation
f1810d7
to
ab48eee
Compare
This is going to need a discussion. Unlike the config, the person adding the attribute is not same person who suffers the outcome. Two things of the top of my head:
For the name I would use |
This comment has been minimized.
This comment has been minimized.
Their meanings, and the way they're handled in `get_attr`, are pretty similar
- Move it and its helper function `parse_attrs` together to the end of the file, because it's surprising to see front-and-center a struct that's only really used in one place (`cognitive_complexity`). - Avoid panic path in `LimitStack::limit` - Replace `assert` with `debug_assert` to avoid panics in release builds
This will be required for the next commit -- kept as a separate commit to reduce noise
ab48eee
to
1087095
Compare
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
If we do go with the attribute, it should also be documented in |
Resolves #13865
Unresolved questions:
changelog: introduce
#[clippy::ignore_interior_mutability]
attribute, analogous to the config option of the same namer? @llogiq