From: Arthur Cohen <[email protected]>

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.
---
 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 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<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 (
-- 
2.50.1

Reply via email to