diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2018-09-09 15:43:28 +0200 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2018-09-09 15:43:28 +0200 |
| commit | 2fb5d5df89897115cb4c7fba6b8da41ed665f75d (patch) | |
| tree | 40a2cd7a83944454ed5534378401a20bd7f18f6b /src/libsyntax | |
| parent | df6ba0c4acceb5f63090bb20bd23f29c4f439376 (diff) | |
| download | rust-2fb5d5df89897115cb4c7fba6b8da41ed665f75d.tar.gz rust-2fb5d5df89897115cb4c7fba6b8da41ed665f75d.zip | |
stabilize `#[used]`
closes #40289
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 0270e36db11..cbadbf8ee16 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -349,9 +349,6 @@ declare_features! ( // Allows the `try {...}` expression (active, try_blocks, "1.29.0", Some(31436), None), - // Used to preserve symbols (see llvm.used) - (active, used, "1.18.0", Some(40289), None), - // Allows module-level inline assembly by way of global_asm!() (active, global_asm, "1.18.0", Some(35119), None), @@ -674,6 +671,9 @@ declare_features! ( // Allows all literals in attribute lists and values of key-value pairs. (accepted, attr_literals, "1.30.0", Some(34981), None), (accepted, panic_handler, "1.30.0", Some(44489), None), + // Used to preserve symbols (see llvm.used) + (accepted, used, "1.29.0", Some(40289), None), + ); // If you change this, please modify src/doc/unstable-book as well. You must @@ -1064,10 +1064,7 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG "unwind_attributes", "#[unwind] is experimental", cfg_fn!(unwind_attributes))), - ("used", Whitelisted, Gated( - Stability::Unstable, "used", - "the `#[used]` attribute is an experimental feature", - cfg_fn!(used))), + ("used", Whitelisted, Ungated), // used in resolve ("prelude_import", Whitelisted, Gated(Stability::Unstable, |
