Revert stabilization of never_type (!) et al#50121
Merged
bors merged 4 commits intorust-lang:masterfrom Apr 22, 2018
Merged
Conversation
This commit is just covering the feature gate itself and the tests that made direct use of `!` and thus need to opt back into the feature. A follow on commit brings back the other change that motivates the revert: Namely, going back to the old rules for falling back to `()`.
…ack to `()`, not `!`. Note that this commit, since it is trying to be minimal in order to ease backporting to the beta and release channels, does *not* include the old future-proofing warnings that we used to have associated with such fallback to `()`; see discussion at this comment: rust-lang#49691 (comment)
This reverts commit e53a2a7.
Contributor
Author
Contributor
Author
|
Even though @nikomatsakis is on PTO, I believe he will be back soon enough that he would be a good choice as a reviewer. (However, if any one else wants to jump on board, I will not object.) |
Member
|
Thanks @pnkfelix! The libs parts here look good to me |
This comment has been minimized.
This comment has been minimized.
Member
|
(I've added 42b6d46 to address the trivial build failures) |
This comment has been minimized.
This comment has been minimized.
594a552 to
76639f7
Compare
This comment has been minimized.
This comment has been minimized.
76639f7 to
7c4b7c6
Compare
7c4b7c6 to
42b6d46
Compare
Member
|
@bors: r+ |
Collaborator
|
📌 Commit 42b6d46 has been approved by |
Member
|
@bors: p=1 due to backport status |
Contributor
|
@alexcrichton Do we also want to revert the addition of |
Collaborator
bors
added a commit
that referenced
this pull request
Apr 21, 2018
…-al, r=alexcrichton Revert stabilization of never_type (!) et al Fix #49691 I *think* this correctly adopts @nikomatsakis 's desired fix of: * reverting stabilization of `!` and `TryFrom`, and * returning to the previous fallback semantics (i.e. it is once again dependent on whether the crate has opted into `#[feature(never_type)]`, * **without** attempting to put back in the previous future-proofing warnings regarding the change in fallback semantics. (I'll be away from computers for a week starting now, so any updates to this PR should be either pushed into it, or someone else should adopt the task of polishing this fix and put up their own PR.)
Collaborator
|
☀️ Test successful - status-appveyor, status-travis |
Merged
Merged
11 tasks
3 tasks
6 tasks
kennytm
added a commit
to kennytm/rust
that referenced
this pull request
Sep 14, 2018
…kennytm re-mark the never docs as unstable Fixes rust-lang#54198 This stability attribute was removed in rust-lang#47630, but not replaced with a `#[stable]` attribute, and when rust-lang#50121 reverted that stabilization, it didn't set the docs back to unstable. I'm concerned as to why it was allowed to not have the stability attribute at all, but at least this can put it back. I'm nominating this for beta backport because it's a really small change, and right now our docs are in an awkward position where the `!` type is technically unstable to use, but the docs don't say so the same way any other library feature would. (And this is also the case *on stable* now, but i'm not suggesting a stable backport for a docs fix.)
This was referenced Dec 20, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix #49691
I think this correctly adopts @nikomatsakis 's desired fix of:
!andTryFrom, and#[feature(never_type)],(I'll be away from computers for a week starting now, so any updates to this PR should be either pushed into it, or someone else should adopt the task of polishing this fix and put up their own PR.)