]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: nr: Add better error to unresolved attribute macro
authorArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Sep 2025 08:47:05 +0000 (10:47 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Fri, 16 Jan 2026 16:32:04 +0000 (17:32 +0100)
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

index 84f482020f5545ce6e27a20f62d5dc6fd866b780..49ac9c821d88c5162581d04acc7ffe30fe37cfd7 100644 (file)
@@ -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 (