AlexAegis / AlexAegis/rx_bevy

Cleanup: Deprecate the Never type in favor of `!` once stabilized

未關閉
#27 0 則留言 0 個 reaction 已指派 1 人 已被 @AlexAegis 認領 在 GitHub 檢視
blocked (rust) cleanup enhancement
主要語言
Rust
星號
25
分支
2
PR 合併指標
30 天內沒有已合併 PR

描述

The never type is currently a type alias for `Infallible`, an enum of no variants.
It does its job except it doesn't implement `Into for T`, which is technically possible using `unreachable!()` since if it can't be constructed, there's nothing to convert.

See https://github.com/rust-lang/rust/issues/35121

#### Solution

- Mark `Never` as deprecated
- Update related documentation and mentions of `Never` to instead refer to `!`
- Update or deprecate the `map_never` operator if `map_into` can take its place.

#### Related Issues:

- https://github.com/AlexAegis/rx_bevy/issues/26

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。