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

Feature gate rust-call ABI. #23948

Merged
merged 2 commits into from
Apr 2, 2015

Conversation

nikomatsakis
Copy link
Contributor

Like it says.

r? @alexcrichton

@alexcrichton
Copy link
Member

@bors: r+ 3d8df31

One of these days we should "feature gate" something by just making it ICE unless you have an attribute enabled.

self.gate_feature("intrinsics",
span,
"intrinsics are subject to change")
}
visit::FkItemFn(_, _, _, abi) |
visit::FkMethod(_, &ast::MethodSig { abi, .. }) if abi == Abi::RustCall => {
self.gate_feature("unboxed_closures",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this say something other than unboxed_closures?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from the tests, it looks like @nikomatsakis deliberately chose to (re?)use that feature name rather than add a new one ... ?

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Apr 1, 2015
@alexcrichton alexcrichton merged commit 3d8df31 into rust-lang:master Apr 2, 2015
@nikomatsakis nikomatsakis deleted the feature-gate-rust-abi branch March 30, 2016 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants