From 1605ab377bc2c9be97df2cfbab00e011d526e316 Mon Sep 17 00:00:00 2001 From: Ticki Date: Mon, 21 Mar 2016 21:01:08 +0100 Subject: Add support for naked functions --- src/libsyntax/feature_gate.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libsyntax') 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, 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), -- cgit 1.4.1-3-g733a5