Skip to content

Commit ce95350

Browse files
committed
EII (builtin) macros in std
1 parent 47406a4 commit ce95350

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
@@ -294,3 +294,10 @@ builtin_macros_unexpected_lit = expected path to a trait, found literal
294294
.label = not a trait
295295
.str_lit = try using `#[derive({$sym})]`
296296
.other = for example, write `#[derive(Debug)]` for `Debug`
297+
298+
builtin_macros_eii_shared_macro_expected_function = `#[{$name}]` is only valid on functions
299+
builtin_macros_eii_extern_target_expected_list = `#[eii_extern_target(...)]` expects a list of one or two elements
300+
builtin_macros_eii_extern_target_expected_macro = `#[eii_extern_target(...)]` is only valid on macros
301+
builtin_macros_eii_shared_macro_expected_max_one_argument = `#[{$name}]` expected no arguments or a single argument: `#[{$name}(default)]`
302+
builtin_macros_eii_extern_target_expected_unsafe = expected this argument to be "unsafe"
303+
.note = the second argument is optional

0 commit comments

Comments
 (0)