Uh oh!
There was an error while loading. Please reload this page.
Add docs for "!" Never type (rfc 1216) - #35286
Conversation
rust-highfive
commented
Aug 4, 2016
(rust_highfive has picked a reviewer for you, use r? to override) |
dns2utf8
commented
Aug 4, 2016
There was a problem hiding this comment.
I think this should be something other than "unit".
rust-lang/rfcs#1216 doesn't contain |
85b0966 to
0ff8841Comparedns2utf8
commented
Aug 4, 2016
Good point. Changed it |
nikomatsakis
commented
Aug 5, 2016
Seems OK. Do we want to wait for the |
nikomatsakis
commented
Aug 5, 2016
Also, we might want to change the grammar for fn items, which probably specifies |
Currently it has a special entry with a link: Since it is a very special case, what would you change? |
canndrew
commented
Aug 9, 2016
I think there's some confusion here. |
nikomatsakis
commented
Aug 10, 2016
I would remove the |
canndrew
commented
Aug 11, 2016
Also |
0ff8841 to
43b98f7Comparedns2utf8
commented
Aug 15, 2016
I would leave the |
There was a problem hiding this comment.
This still isn't right. ! isn't an expression, just a type (although the sections for primitive types is nothing but FIXMEs at the moment).
bors
commented
Aug 18, 2016
☔ The latest upstream changes (presumably #35769) made this pull request unmergeable. Please resolve the merge conflicts. |
nikomatsakis
commented
Aug 18, 2016
I agree with @canndrew's edits, though if the type is called never -- isn't it? I forget -- let's just call it that. |
0929661 to
2632691CompareI added the word "always" and capitalized the never to prevent the missreading @apasel422 mentioned, but I am not sure if it enhances the readability over all. I agree with @nikomatsakis, it is no longer a special case but I kept the reference to the Diverging Functions |
2632691 to
d9bd4d5Compare| ``` | ||
| ### Never type | ||
| An empty type |
There was a problem hiding this comment.
Better, though I feel like we could say a lot more here. :) For example, "A type representing the result of a function which never returns -- for example because it panics or goes into an infinite loop."
nikomatsakis
commented
Sep 28, 2016
Well, this has been inactive for a while. I'm going to just merge it since it seems like an improvement, even if I think we could expand the text. |
nikomatsakis
commented
Sep 28, 2016
@bors r+ rollup |
bors
commented
Sep 28, 2016
📌 Commit d9bd4d5 has been approved by |
…komatsakis Add docs for "!" Never type (rfc 1216) Pull Request: rust-lang/rfcs#1216 Tracking Issue: rust-lang#35121
Pull Request: rust-lang/rfcs#1216
Tracking Issue: #35121