We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
export_name
1 parent 0fcf295 commit 86b54d5Copy full SHA for 86b54d5
compiler/rustc_parse/src/validate_attr.rs
@@ -303,6 +303,7 @@ fn emit_malformed_attribute(
303
| sym::must_use
304
| sym::track_caller
305
| sym::link_name
306
+ | sym::export_name
307
) {
308
return;
309
}
tests/ui/attributes/malformed-attrs.rs
@@ -31,7 +31,6 @@
31
32
#[unsafe(export_name)]
33
//~^ ERROR malformed
34
-//~| ERROR malformed
35
#[rustc_allow_const_fn_unstable]
36
//~^ ERROR `rustc_allow_const_fn_unstable` expects a list of feature names
37
#[allow_internal_unstable]
@@ -69,7 +68,6 @@
69
68
70
#[export_name()]
71
72
73
#[used()]
74
75
#[crate_name]
0 commit comments