diff options
| author | Ticki <Ticki@users.noreply.github.com> | 2016-03-21 21:01:08 +0100 |
|---|---|---|
| committer | Ticki <Ticki@users.noreply.github.com> | 2016-03-21 21:01:08 +0100 |
| commit | 1605ab377bc2c9be97df2cfbab00e011d526e316 (patch) | |
| tree | fa2e1a73245bd8a3ea2da7a1af6c1b68d2b362eb /src/libsyntax | |
| parent | 0215681744bb1156ef686ab265ed71e4d5705b64 (diff) | |
| download | rust-1605ab377bc2c9be97df2cfbab00e011d526e316.tar.gz rust-1605ab377bc2c9be97df2cfbab00e011d526e316.zip | |
Add support for naked functions
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index a017e62d546..ebd8db1b25c 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -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), + // allow empty structs and enum variants with braces ("braced_empty_structs", "1.5.0", Some(29720), Accepted), @@ -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")), ("export_name", Whitelisted, Ungated), ("inline", Whitelisted, Ungated), ("link", Whitelisted, Ungated), |
