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 7deda8d commit c87ace7Copy full SHA for c87ace7
compiler/rustc_parse/src/validate_attr.rs
@@ -302,6 +302,7 @@ fn emit_malformed_attribute(
302
| sym::no_mangle
303
| sym::must_use
304
| sym::track_caller
305
+ | sym::export_name
306
) {
307
return;
308
}
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