Uh oh!
There was an error while loading. Please reload this page.
std: Destabilize the internals of panic! - #24212
Merged
Merged
Conversation
Now that we have a `#[allow_internal_unstable]` attribute for macros there's no need for these two `begin_unwind` functions to be stable. Right now the `panic!` interface is the only one we wish to stabilize, so remove the stability markers from these functions. While this is a breaking change, it is highly unlikely to break any actual code. It is recommended to use the `panic!` macro instead if it breaks explicit calls into `std::rt`. [breaking-change] cc rust-lang#24208
rust-highfive
commented
Apr 8, 2015
Contributor
r? @huonw (rust_highfive has picked a reviewer for you, use r? to override) |
Member
There was a problem hiding this comment.
Do these need explicit #[unstable] annotations?
Contributor
There was a problem hiding this comment.
unstable inherits (in this case from std::rt).
huonw
commented
Apr 8, 2015
Contributor
@bors r+ |
bors
commented
Apr 8, 2015
Collaborator
📌 Commit 65e3f03 has been approved by |
rprichard
commented
Apr 8, 2015
Contributor
Aren't the pretty printing tests going to fail? #23616. |
alexcrichton
commented
Apr 8, 2015
MemberAuthor
@rprichard you are most correct! re-r? @huonw, I just deleted |
huonw
commented
Apr 8, 2015
Contributor
@bors r+ |
bors
commented
Apr 8, 2015
Collaborator
📌 Commit 704f628 has been approved by |
alexcrichtonforce-pushed
the
destabilize-begin-unwind
branch
from
April 8, 2015 23:28
704f628 to
f4270c8Comparealexcrichton
commented
Apr 8, 2015
MemberAuthor
This commit removes pretty-expanded from all tests that wind up calling panic! one way or another now that its internals are unstable.
alexcrichtonforce-pushed
the
destabilize-begin-unwind
branch
from
April 9, 2015 00:22
f4270c8 to
ec7c800Comparealexcrichton
commented
Apr 9, 2015
MemberAuthor
Manishearth added a commit
to Manishearth/rust
that referenced
this pull request
Apr 9, 2015
…nd, r=huonw Now that we have a `#[allow_internal_unstable]` attribute for macros there's no need for these two `begin_unwind` functions to be stable. Right now the `panic!` interface is the only one we wish to stabilize, so remove the stability markers from these functions. While this is a breaking change, it is highly unlikely to break any actual code. It is recommended to use the `panic!` macro instead if it breaks explicit calls into `std::rt`. [breaking-change] cc rust-lang#24208
Manishearth added a commit
to Manishearth/rust
that referenced
this pull request
Apr 9, 2015
…nd, r=huonw Now that we have a `#[allow_internal_unstable]` attribute for macros there's no need for these two `begin_unwind` functions to be stable. Right now the `panic!` interface is the only one we wish to stabilize, so remove the stability markers from these functions. While this is a breaking change, it is highly unlikely to break any actual code. It is recommended to use the `panic!` macro instead if it breaks explicit calls into `std::rt`. [breaking-change] cc rust-lang#24208
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 freeto 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.
Now that we have a
#[allow_internal_unstable]attribute for macros there's noneed for these two
begin_unwindfunctions to be stable. Right now thepanic!interface is the only one we wish to stabilize, so remove the stability markers
from these functions.
While this is a breaking change, it is highly unlikely to break any actual code.
It is recommended to use the
panic!macro instead if it breaks explicit callsinto
std::rt.[breaking-change]
cc #24208