From b7ef674832c0d7e703e12f7880a928bf8cd0c9c5 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 13 Jul 2018 11:30:47 -0700 Subject: rustc: Use link_section, not wasm_custom_section This commit transitions definitions of custom sections on the wasm target from the unstable `#[wasm_custom_section]` attribute to the already-stable-for-other-targets `#[link_section]` attribute. Mostly the same restrictions apply as before, except that this now applies only to statics. Closes #51088 --- src/libsyntax/feature_gate.rs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/libsyntax') diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index f033c5006c5..189a36427db 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -417,9 +417,6 @@ declare_features! ( // `use path as _;` and `extern crate c as _;` (active, underscore_imports, "1.26.0", Some(48216), None), - // The #[wasm_custom_section] attribute - (active, wasm_custom_section, "1.26.0", Some(51088), None), - // The #![wasm_import_module] attribute (active, wasm_import_module, "1.26.0", Some(52090), None), @@ -1077,11 +1074,6 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG "infer outlives requirements is an experimental feature", cfg_fn!(infer_outlives_requirements))), - ("wasm_custom_section", Whitelisted, Gated(Stability::Unstable, - "wasm_custom_section", - "attribute is currently unstable", - cfg_fn!(wasm_custom_section))), - // RFC 2070 ("panic_implementation", Normal, Gated(Stability::Unstable, "panic_implementation", -- cgit 1.4.1-3-g733a5