You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A-lintArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.T-middleType: Probably requires verifiying types
If you derive Hash, but implement (Partial)Eq manually, you're probably doing it wrong, because those two need to agree for e.g. HashMap to work right.
The text was updated successfully, but these errors were encountered:
Manishearth
added
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
T-middle
Type: Probably requires verifiying types
A-lint
Area: New lints
labels
Nov 2, 2015
@Manishearth I assume the best way to do this is to have LateLintPass::check_struct_def query the context for the presence of PartialEq and Hash impls for the struct/enum and then see if one contains the automatic_derive annotation and the other does not. We can extract this data from cx.tcx more efficiently than recomputing it ourselves, right?
rust-lang/rfcs#1499 suggests that this issue is not yet resolved, since only derived Hash + implemented PartialEq is linted, but not derived PartialEq + implemented Hash
A-lintArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.T-middleType: Probably requires verifiying types
If you derive Hash, but implement (Partial)Eq manually, you're probably doing it wrong, because those two need to agree for e.g. HashMap to work right.
The text was updated successfully, but these errors were encountered: