Skip to content

Conversation

nikomatsakis
Copy link
Contributor

Like it says.

r? @alexcrichton

@nikomatsakis nikomatsakis force-pushed the feature-gate-rust-abi branch from 5cfef21 to d81e866 Compare April 1, 2015 20:00
@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
Contributor

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