Skip to content

Commit 92c03a2

Browse files
committed
EII (builtin) macros in std
1 parent 2de02ac commit 92c03a2

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
@@ -152,6 +152,17 @@ builtin_macros_derive_path_args_value = traits in `#[derive(...)]` don't accept
152152
153153
builtin_macros_duplicate_macro_attribute = duplicated attribute
154154
155+
builtin_macros_eii_extern_target_expected_list = `#[eii_extern_target(...)]` expects a list of one or two elements
156+
builtin_macros_eii_extern_target_expected_macro = `#[eii_extern_target(...)]` is only valid on macros
157+
builtin_macros_eii_extern_target_expected_unsafe = expected this argument to be "unsafe"
158+
.note = the second argument is optional
159+
160+
builtin_macros_eii_only_once = `#[{$name}]` can only be specified once
161+
.note = specified again here
162+
163+
builtin_macros_eii_shared_macro_expected_function = `#[{$name}]` is only valid on functions
164+
builtin_macros_eii_shared_macro_expected_max_one_argument = `#[{$name}]` expected no arguments or a single argument: `#[{$name}(default)]`
165+
155166
builtin_macros_env_not_defined = environment variable `{$var}` not defined at compile time
156167
.cargo = Cargo sets build script variables at run time. Use `std::env::var({$var_expr})` instead
157168
.cargo_typo = there is a similar Cargo environment variable: `{$suggested_var}`

0 commit comments

Comments
 (0)