You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of #126405 - He1pa:translate_builtin_macro_diag, r=davidtwco
Migrate some rustc_builtin_macros to SessionDiagnostic
<!--
If this PR is related to an unstable feature or an otherwise tracked effort,
please link to the relevant tracking issue here. If you don't know of a related
tracking issue or there are none, feel free to ignore this.
This PR will get automatically assigned to a reviewer. In case you would like
a specific user to review your work, you can assign it to them by using
r? <reviewer name>
-->
Part of #100717.
pick up abandoned pr: #101935
`@rustbot` label +A-translation
builtin_macros_proc_macro = `proc-macro` crate types currently cannot export any items other than functions tagged with `#[proc_macro]`, `#[proc_macro_derive]`, or `#[proc_macro_attribute]`
230
235
236
+
builtin_macros_proc_macro_attribute_only_be_used_on_bare_functions = the `#[{$path}]` attribute may only be used on bare functions
237
+
238
+
builtin_macros_proc_macro_attribute_only_usable_with_crate_type = the `#[{$path}]` attribute is only usable with crates of the `proc-macro` crate type
239
+
231
240
builtin_macros_requires_cfg_pattern =
232
241
macro requires a cfg-pattern as an argument
233
242
.label = cfg-pattern required
234
243
244
+
builtin_macros_source_uitls_expected_item = expected item, found `{$token}`
245
+
235
246
builtin_macros_takes_no_arguments = {$name} takes no arguments
236
247
237
248
builtin_macros_test_bad_fn = {$kind} functions cannot be used for tests
0 commit comments