[gcc r15-8841] gccrs: Add enum variant string information to definition
Arthur Cohen
cohenarthur@gcc.gnu.org
Mon Mar 24 12:39:31 GMT 2025
https://gcc.gnu.org/g:f9c9afd0b8bcc268648055ccebe0e760394e314d
commit r15-8841-gf9c9afd0b8bcc268648055ccebe0e760394e314d
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date: Tue Mar 4 16:59:11 2025 +0100
gccrs: Add enum variant string information to definition
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>
Diff:
---
gcc/rust/resolve/rust-rib.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/rust/resolve/rust-rib.cc b/gcc/rust/resolve/rust-rib.cc
index 1d53a7418588..690bde911396 100644
--- a/gcc/rust/resolve/rust-rib.cc
+++ b/gcc/rust/resolve/rust-rib.cc
@@ -76,6 +76,8 @@ Rib::Definition::to_string () const
}
}
out << "]";
+ if (enum_variant)
+ out << "(enum variant)";
return out.str ();
}
More information about the Gcc-cvs
mailing list