Skip to content

Commit cf67aa2

Browse files
committed
EII (builtin) macros in std
1 parent 1b9bd06 commit cf67aa2

File tree

20 files changed

+557
-62
lines changed

20 files changed

+557
-62
lines changed

compiler/rustc_builtin_macros/messages.ftl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,3 +305,10 @@ builtin_macros_unexpected_lit = expected path to a trait, found literal
305305
.other = for example, write `#[derive(Debug)]` for `Debug`
306306
307307
builtin_macros_unnameable_test_items = cannot test inner items
308+
309+
builtin_macros_eii_shared_macro_expected_function = `#[{$name}]` is only valid on functions
310+
builtin_macros_eii_extern_target_expected_list = `#[eii_extern_target(...)]` expects a list of one or two elements
311+
builtin_macros_eii_extern_target_expected_macro = `#[eii_extern_target(...)]` is only valid on macros
312+
builtin_macros_eii_shared_macro_expected_max_one_argument = `#[{$name}]` expected no arguments or a single argument: `#[{$name}(default)]`
313+
builtin_macros_eii_extern_target_expected_unsafe = expected this argument to be "unsafe"
314+
.note = the second argument is optional

0 commit comments

Comments
 (0)