https://gcc.gnu.org/g:3a8b046343a8ddbad3fe192f18a3f7e88559a09f
commit r16-6825-g3a8b046343a8ddbad3fe192f18a3f7e88559a09f Author: Arthur Cohen <[email protected]> Date: Tue Sep 16 10:47:05 2025 +0200 gccrs: nr: Add better error to unresolved attribute macro gcc/rust/ChangeLog: * resolve/rust-early-name-resolver-2.0.cc (Early::visit_attributes): Mention the name of the attribute macro that hasn't been found. Diff: --- gcc/rust/resolve/rust-early-name-resolver-2.0.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/rust/resolve/rust-early-name-resolver-2.0.cc b/gcc/rust/resolve/rust-early-name-resolver-2.0.cc index 84f482020f55..49ac9c821d88 100644 --- a/gcc/rust/resolve/rust-early-name-resolver-2.0.cc +++ b/gcc/rust/resolve/rust-early-name-resolver-2.0.cc @@ -356,7 +356,8 @@ Early::visit_attributes (std::vector<AST::Attribute> &attrs) // FIXME: Change to proper error message collect_error ( Error (attr.get_locus (), - "could not resolve attribute macro invocation")); + "could not resolve attribute macro invocation %qs", + name.c_str ())); return; } auto pm_def = mappings.lookup_attribute_proc_macro_def (
