-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Add support for naked functions #32410
Conversation
The tests are stolen from @jackpot51's PR. |
tidy failure
|
Fixed. |
r? @eddyb |
@@ -376,6 +379,9 @@ pub const KNOWN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeGat | |||
// FIXME: #14406 these are processed in trans, which happens after the | |||
// lint pass | |||
("cold", Whitelisted, Ungated), | |||
("naked", Whitelisted, Gated("naked_functions", | |||
"the `#[naked]` attribute \ | |||
is an experimental feature")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test that the feature gating works, i.e. you get an error by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fixed now.
@bors r+ |
📌 Commit 4869417 has been approved by |
@@ -212,6 +212,9 @@ const KNOWN_FEATURES: &'static [(&'static str, &'static str, Option<u32>, Status | |||
// rust runtime internal | |||
("unwind_attributes", "1.4.0", None, Active), | |||
|
|||
// allow the use of `#[naked]` on functions. | |||
("naked_functions", "1.9.0", None, Active), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be Some(32408)
When will this be merged? |
@ticki You can see the queue of PRs to be tested & merged here: http://buildbot.rust-lang.org/homu/queue/rust |
Add support for naked functions See rust-lang/rfcs#1201 (comment) This PR adds `#[naked]` for marking naked functions.
See rust-lang/rfcs#1201 (comment)
This PR adds
#[naked]
for marking naked functions.