rust/tests/ui/macros/auxiliary
bors ab62d56603 Auto merge of #140580 - jdonszelmann:variables-external-macros, r=m-ou-se
Don't name variables from external macros in borrow errors.

This came up as part of the expansion of format_args. However, it's a more general problem (and now solution).

I noticed that this does change another test, moving out of fields in derives on packed struct. However, I think this is a better error simply because it used to refer to `other.0` which is an implementation detail which doesn't really make sense.

cc `@m-ou-se`
2025-05-04 15:16:06 +00:00
..
attr-from-macro.rs
define-macro.rs
deprecated-macros.rs
dollar-crate-nested-encoding.rs
expr_2021_implicit.rs Add a test demonstrating the problem 2024-06-19 12:37:32 -04:00
fancy-panic.rs Move some tests out of tests/ui 2025-05-03 17:22:52 +02:00
foreign-crate-macro-pat.rs [AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives 2024-02-16 20:02:50 +00:00
hello_macro.rs Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
issue-19163.rs
issue-40469.rs
issue-75982.rs
issue-100199.rs Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
macro-comma-support.rs
macro-def-site-super.rs
macro-in-other-crate.rs
macro-include-items-expr.rs tests: use `//@ ignore-auxiliary` with backlinked primary test file 2025-04-17 19:45:28 +08:00
macro-include-items-item.rs tests: use `//@ ignore-auxiliary` with backlinked primary test file 2025-04-17 19:45:28 +08:00
macro_crate_def_only.rs
macro_crate_nonterminal.rs
macro_export_inner_module.rs
macro_with_super_1.rs
metavar_2018.rs Add coverage for pat too 2024-09-17 11:08:52 -07:00
or-pattern.rs
proc_macro_def.rs Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
proc_macro_sequence.rs Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
return_from_external_macro.rs Test that names of variables in external macros are not shown on a borrow error 2025-05-02 18:09:25 +02:00
two_macros-rpass.rs
two_macros.rs
unstable-macros.rs
use-macro-self.rs