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
This should either be .expect() or .unwrap_or_else(|| panic!()) (if they want the formatting panic provides). Ideally this would be generalised to any diverging function (fn(…) -> !) as well.
The text was updated successfully, but these errors were encountered:
Similarly, one can implement a lot of Option's API in terms of itself. A number of hints to use the right one will certainly be helpful for a number of people.
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
Aug 11, 2015
This seems to boil down to seeing the never type (!) used basically anywhere except expression statements? I would call anything suspicious that doesn't return but gets assigned to something - todo!(), variations of unreachable, asserts?.
A-lintArea: New lintsE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.T-middleType: Probably requires verifiying types
This should either be
.expect()
or.unwrap_or_else(|| panic!())
(if they want the formattingpanic
provides). Ideally this would be generalised to any diverging function (fn(…) -> !
) as well.The text was updated successfully, but these errors were encountered: