Skip to content

Commit 49e8aa1

Browse files
committed
EII (builtin) macros in std
1 parent 1ec6e44 commit 49e8aa1

File tree

20 files changed

+582
-58
lines changed

20 files changed

+582
-58
lines changed

compiler/rustc_builtin_macros/messages.ftl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,17 @@ builtin_macros_derive_path_args_value = traits in `#[derive(...)]` don't accept
154154
155155
builtin_macros_duplicate_macro_attribute = duplicated attribute
156156
157+
builtin_macros_eii_extern_target_expected_list = `#[eii_extern_target(...)]` expects a list of one or two elements
158+
builtin_macros_eii_extern_target_expected_macro = `#[eii_extern_target(...)]` is only valid on macros
159+
builtin_macros_eii_extern_target_expected_unsafe = expected this argument to be "unsafe"
160+
.note = the second argument is optional
161+
162+
builtin_macros_eii_only_once = `#[{$name}]` can only be specified once
163+
.note = specified again here
164+
165+
builtin_macros_eii_shared_macro_expected_function = `#[{$name}]` is only valid on functions
166+
builtin_macros_eii_shared_macro_expected_max_one_argument = `#[{$name}]` expected no arguments or a single argument: `#[{$name}(default)]`
167+
157168
builtin_macros_env_not_defined = environment variable `{$var}` not defined at compile time
158169
.cargo = Cargo sets build script variables at run time. Use `std::env::var({$var_expr})` instead
159170
.custom = use `std::env::var({$var_expr})` to read the variable at run time

0 commit comments

Comments
 (0)