unwrap_in_result: allow unwrapping infallible result type - #16711
unwrap_in_result: allow unwrapping infallible result type#16711zihan0822 wants to merge 1 commit into
unwrap_in_result: allow unwrapping infallible result type#16711Conversation
changelog: [`unwrap_in_result`]: allow unwrapping infallible result type Signed-off-by: Zihan <zihanli0822@gmail.com>
|
r? @Jarcho rustbot has assigned @Jarcho. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
Lintcheck changes for c8dab51
This comment will be updated if you push new changes |
There was a problem hiding this comment.
Renaming to is_option_or_fallible_result and bailing when is_never_like sees an uninhabited Err matches Result<T, Infallible> ergonomics. If the is_never_like -> is_visibly_uninhabited refactor in related PRs lands, mirror that predicate here so structurally empty errors stay aligned.
|
☔ The latest upstream changes (possibly #17607) made this pull request unmergeable. Please resolve the merge conflicts. |
fixes #16709
changelog: [
unwrap_in_result]: allow unwrapping infallible result type