AlexAegis / AlexAegis/rx_bevy

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

Abierto
#27 0 comentarios 0 reacciones 1 asignado Reclamado por @AlexAegis Ver en GitHub
blocked (rust) cleanup enhancement
Lenguaje dominante
Rust
Estrellas
25
Forks
2
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.