Never type impls - #6451
Never type impls#6451Person-93 wants to merge 7 commits into
Conversation
|
@davidhewitt do you know what might be causing the compiler errors about conflicting implementations from the |
|
We already have impls for Infallible, which is an alias for |
|
+1 to @mejrs. In 1.100 |
|
The major difference is that I think I would prefer that over the conditional compilation and the never say never hack |
Prior to never type stabilization I'd have agreed with you. It relied on a compiler bug which might be fixed in future versions. But with the conditional compilation, we are not relying on it in future versions. |
davidhewitt
left a comment
There was a problem hiding this comment.
It certainly seems like the current implementation has issues on MSRV; perhaps let's just implement only for 1.100+ once that releases?
72f3b31 to
b4124cd
Compare
With the never type stabilized in rust
1.100we can add trait impls for it and use thenever-say-nevertrick to make it work in older rust versions.