Skip to content

rustc: Stabilize #[wasm_import_module] #52441

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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions src/libsyntax/feature_gate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,6 @@ declare_features! (
// 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),

// Allows keywords to be escaped for use as identifiers
(active, raw_identifiers, "1.26.0", Some(48589), None),

Expand Down Expand Up @@ -626,6 +623,8 @@ declare_features! (
(accepted, global_allocator, "1.28.0", Some(27389), None),
// Allows `#[repr(transparent)]` attribute on newtype structs
(accepted, repr_transparent, "1.28.0", Some(43036), None),
// The #![wasm_import_module] attribute
(accepted, wasm_import_module, "1.29.0", Some(52090), None),
);

// If you change this, please modify src/doc/unstable-book as well. You must
Expand Down Expand Up @@ -980,10 +979,7 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG
"the `#[no_debug]` attribute was an experimental feature that has been \
deprecated due to lack of demand",
cfg_fn!(no_debug))),
("wasm_import_module", Normal, Gated(Stability::Unstable,
"wasm_import_module",
"experimental attribute",
cfg_fn!(wasm_import_module))),
("wasm_import_module", Normal, Ungated),
("omit_gdb_pretty_printer_section", Whitelisted, Gated(Stability::Unstable,
"omit_gdb_pretty_printer_section",
"the `#[omit_gdb_pretty_printer_section]` \
Expand Down
1 change: 0 additions & 1 deletion src/test/run-make/wasm-import-module/bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

#![crate_type = "cdylib"]
#![feature(wasm_import_module)]
#![deny(warnings)]

extern crate foo;
Expand Down
1 change: 0 additions & 1 deletion src/test/run-make/wasm-import-module/foo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

#![crate_type = "rlib"]
#![feature(wasm_import_module)]
#![deny(warnings)]

#[wasm_import_module = "./dep"]
Expand Down
15 changes: 0 additions & 15 deletions src/test/ui/feature-gate-wasm_import_module.rs

This file was deleted.

11 changes: 0 additions & 11 deletions src/test/ui/feature-gate-wasm_import_module.stderr

This file was deleted.

2 changes: 1 addition & 1 deletion src/test/ui/wasm-import-module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(wasm_import_module)]


#[wasm_import_module] //~ ERROR: must be of the form
extern {}
Expand Down