-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
A-lintArea: New lintsArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.Call for participation: Medium difficulty level problem and requires some initial experience.L-correctnessLint: Belongs in the correctness lint groupLint: Belongs in the correctness lint groupT-middleType: Probably requires verifiying typesType: Probably requires verifiying types
Description
even read-only access can be bad, because between two calls to hash
, the cell might have changed its value, even if there are only immutable references present.
cc #729
should be fairly straight forward.
- Find impls of the above traits
- check if the type has fields that have interior mutability
- check if the impl-method has an ExprField for one of the interior mutability fields
bonus points for also checking inherent methods that are called in the impl method for interior mutation.
Metadata
Metadata
Assignees
Labels
A-lintArea: New lintsArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.Call for participation: Medium difficulty level problem and requires some initial experience.L-correctnessLint: Belongs in the correctness lint groupLint: Belongs in the correctness lint groupT-middleType: Probably requires verifiying typesType: Probably requires verifiying types