-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Rework interior mutability detection #12691
Rework interior mutability detection #12691
Conversation
ignore_interior_mutability
config with indirect usages
Isn't that a regression? There's a test case with a |
Forgot to mention that, the old version considered any |
For the |
You can only get |
True. OK then. @bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Replaces the existing interior mutability detection, the two main changes being
struct S(&Cell)
mutable_key_type
ignores pointers as it did beforeignore_interior_mutability
config now applies to types containing the ignored type, e.g.http::HeaderName
Fixes #7752
Fixes #9776
Fixes #9801
changelog: [
mutable_key_type
], [declare_interior_mutable_const
]: now considers types that have references to interior mutable types as interior mutable