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
Manishearth opened this issue
Jul 20, 2017
· 2 comments
· Fixed by #8630
Labels
A-lintArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.T-middleType: Probably requires verifiying types
since it's a no op, and likely means you mem::forgot the wrong thing.
(I hit this issue today)
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.
A-lint
Area: New lints
T-middle
Type: Probably requires verifiying types
labels
Jul 20, 2017
There's a use case for types that are not Drop: if the type is !Copy, then you just got rid of it. But we might prefer to suggest let _ = foo; instead, not sure?
A-lintArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.T-middleType: Probably requires verifiying types
We should warn if you call
mem::forget
on:Copy
Drop
since it's a no op, and likely means you
mem::forgot
the wrong thing.(I hit this issue today)
The text was updated successfully, but these errors were encountered: