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.
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.


Commit on github: 
https://github.com/Rust-GCC/gccrs/commit/11c436c6270c51b978a0ead489658e1b77ab1588

The commit has been mentioned in the following pull-request(s):
 - https://github.com/Rust-GCC/gccrs/pull/4345

 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 0dff83153..6153cc37e 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 (

base-commit: 267465e0322396d0a21a801947530ee34cec42ba
-- 
2.52.0

Reply via email to