News for hackers. Stuff that matters.
Re:Announcing Rust 1.28 by steveklabnik on Thursday August 02, 2018 @12:29PM (#17672782)
We used to have NonZero<T>, but changed it https://github.com/rust-lang/rfcs/blob/b728bf68703f681ef0e42...

The real motivation is

> With NonNull covering pointers, the remaining use cases for NonZero are integers.

It's unclear how extensible we truly want this to be, and so we decided to go with the concrete types. In the worst case, we'd eventually re-introduce some sort of NonZero<T>, and deprecate these types. This was deemed worth it to let people use this important feature on stable, rather than waiting and seeing if we ever decide to do otherwise.

There are no comments on this comment yet.