]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Add enum variant string information to definition
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 4 Mar 2025 15:59:11 +0000 (16:59 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 24 Mar 2025 12:07:15 +0000 (13:07 +0100)
New enum variant status now appears in the string representation of
the resolver's definition.

gcc/rust/ChangeLog:

* resolve/rust-rib.cc (Rib::Definition::to_string): Add enum variant
status.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/resolve/rust-rib.cc

index 1d53a741858821e56c0fd23ed588fc698b10963f..690bde911396e4c16cf107017b00a1c44739d030 100644 (file)
@@ -76,6 +76,8 @@ Rib::Definition::to_string () const
        }
     }
   out << "]";
+  if (enum_variant)
+    out << "(enum variant)";
   return out.str ();
 }