Skip to content

Commit 39bf05c

Browse files
committed
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 <[email protected]>
1 parent c67466b commit 39bf05c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gcc/rust/resolve/rust-rib.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ Rib::Definition::to_string () const
7676
}
7777
}
7878
out << "]";
79+
if (enum_variant)
80+
out << "(enum variant)";
7981
return out.str ();
8082
}
8183

0 commit comments

Comments
 (0)