public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] hir: Handle RESTRICTED properly when converting a Visibility to a string
@ 2022-06-08 12:44 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:44 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:4393aabd0732727d945deb057c387524bde39af2
commit 4393aabd0732727d945deb057c387524bde39af2
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date: Wed May 4 18:10:32 2022 +0200
hir: Handle RESTRICTED properly when converting a Visibility to a string
Diff:
---
gcc/rust/hir/tree/rust-hir-full-test.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/rust/hir/tree/rust-hir-full-test.cc b/gcc/rust/hir/tree/rust-hir-full-test.cc
index 8ef11945b13..b328a7f0839 100644
--- a/gcc/rust/hir/tree/rust-hir-full-test.cc
+++ b/gcc/rust/hir/tree/rust-hir-full-test.cc
@@ -123,6 +123,8 @@ Visibility::as_string () const
case PRIVATE:
return std::string ("private");
case PUBLIC:
+ return std::string ("pub");
+ case RESTRICTED:
return std::string ("pub(in ") + path.get_mappings ().as_string ()
+ std::string (")");
default:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-08 12:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 12:44 [gcc/devel/rust/master] hir: Handle RESTRICTED properly when converting a Visibility to a string Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).