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` |
||
|---|---|---|
| .. | ||
| attr-from-macro.rs | ||
| define-macro.rs | ||
| deprecated-macros.rs | ||
| dollar-crate-nested-encoding.rs | ||
| expr_2021_implicit.rs | ||
| fancy-panic.rs | ||
| foreign-crate-macro-pat.rs | ||
| hello_macro.rs | ||
| issue-19163.rs | ||
| issue-40469.rs | ||
| issue-75982.rs | ||
| issue-100199.rs | ||
| macro-comma-support.rs | ||
| macro-def-site-super.rs | ||
| macro-in-other-crate.rs | ||
| macro-include-items-expr.rs | ||
| macro-include-items-item.rs | ||
| macro_crate_def_only.rs | ||
| macro_crate_nonterminal.rs | ||
| macro_export_inner_module.rs | ||
| macro_with_super_1.rs | ||
| metavar_2018.rs | ||
| or-pattern.rs | ||
| proc_macro_def.rs | ||
| proc_macro_sequence.rs | ||
| return_from_external_macro.rs | ||
| two_macros-rpass.rs | ||
| two_macros.rs | ||
| unstable-macros.rs | ||
| use-macro-self.rs | ||