Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make `#[unwind]` attribute specify expectations more clearly #48380

Merged
merged 2 commits into from Mar 1, 2018

Conversation

Projects
None yet
6 participants
@nikomatsakis
Copy link
Contributor

nikomatsakis commented Feb 20, 2018

You can now choose between the following:

  • #[unwind(allowed)]
  • #[unwind(aborts)]

Per #48251, the default is #[unwind(allowed)], though
I think we should change this eventually.

@nikomatsakis

This comment has been minimized.

Copy link
Contributor Author

nikomatsakis commented Feb 20, 2018

@rust-highfive

This comment has been minimized.

Copy link
Collaborator

rust-highfive commented Feb 20, 2018

r? @michaelwoerister

(rust_highfive has picked a reviewer for you, use r? to override)

Aborts,
}

/// Determine what `#[inline]` attribute is present in `attrs`, if any.

This comment has been minimized.

@kennytm

kennytm Feb 20, 2018

Member

s/inline/unwind/

@nikomatsakis nikomatsakis force-pushed the nikomatsakis:issue-48251-master branch 2 times, most recently from d8287cf to 2dadb12 Feb 20, 2018

make `#[unwind]` attribute specify expectations more clearly
You can now choose between the following:

- `#[unwind(allowed)]`
- `#[unwind(aborts)]`

Per #48251, the default is `#[unwind(allowed)]`, though
I think we should change this eventually.

@nikomatsakis nikomatsakis force-pushed the nikomatsakis:issue-48251-master branch from 2dadb12 to a47fd3d Feb 21, 2018

@nikomatsakis

This comment has been minimized.

Copy link
Contributor Author

nikomatsakis commented Feb 21, 2018

@alexcrichton

This comment has been minimized.

Copy link
Member

alexcrichton commented Feb 26, 2018

@bors: r+

Thanks @nikomatsakis! I hope that soon this won't be necessary in the sense that users won't have to decorate apis with attributes in an on-demand fashion, but this is all unstable anyway so seems like a fine interim solution!

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Feb 26, 2018

📋 Looks like this PR is still in progress, ignoring approval

@nikomatsakis nikomatsakis changed the title [WIP] make `#[unwind]` attribute specify expectations more clearly make `#[unwind]` attribute specify expectations more clearly Feb 27, 2018

@nikomatsakis

This comment has been minimized.

Copy link
Contributor Author

nikomatsakis commented Feb 27, 2018

@bors r=acrichto

@bors

This comment has been minimized.

Copy link
Contributor

bors commented Feb 27, 2018

📌 Commit 566c6ac has been approved by acrichto

Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 28, 2018

Rollup merge of rust-lang#48380 - nikomatsakis:issue-48251-master, r=…
…acrichto

make `#[unwind]` attribute specify expectations more clearly

You can now choose between the following:

- `#[unwind(allowed)]`
- `#[unwind(aborts)]`

Per rust-lang#48251, the default is `#[unwind(allowed)]`, though
I think we should change this eventually.

bors added a commit that referenced this pull request Feb 28, 2018

Auto merge of #48615 - Manishearth:rollup, r=Manishearth
Rollup of 10 pull requests

- Successful merges: #48355, #48359, #48380, #48419, #48420, #48461, #48522, #48570, #48572, #48603
- Failed merges:

Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 28, 2018

bors added a commit that referenced this pull request Feb 28, 2018

Auto merge of #48615 - Manishearth:rollup, r=Manishearth
Rollup of 10 pull requests

- Successful merges: #48355, #48359, #48380, #48419, #48420, #48461, #48522, #48570, #48572, #48603
- Failed merges:

Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 28, 2018

bors added a commit that referenced this pull request Feb 28, 2018

Auto merge of #48615 - Manishearth:rollup, r=Manishearth
Rollup of 10 pull requests

- Successful merges: #48355, #48359, #48380, #48419, #48420, #48461, #48522, #48570, #48572, #48603
- Failed merges:

Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 28, 2018

bors added a commit that referenced this pull request Feb 28, 2018

Auto merge of #48615 - Manishearth:rollup, r=Manishearth
Rollup of 10 pull requests

- Successful merges: #48355, #48359, #48380, #48419, #48420, #48461, #48522, #48570, #48572, #48603
- Failed merges:

@bors bors merged commit 566c6ac into rust-lang:master Mar 1, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.