From: Arthur Cohen Date: Tue, 16 Sep 2025 08:47:05 +0000 (+0200) Subject: gccrs: nr: Add better error to unresolved attribute macro X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a8b046343a8ddbad3fe192f18a3f7e88559a09f;p=thirdparty%2Fgcc.git 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 --git a/gcc/rust/resolve/rust-early-name-resolver-2.0.cc b/gcc/rust/resolve/rust-early-name-resolver-2.0.cc index 84f482020f5..49ac9c821d8 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 &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 (