public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Add generic-arguments to predicate as_string
@ 2022-06-08 11:48 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 11:48 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:d308ce83b9bb543849f474fcee8cad1c73bea6c1
commit d308ce83b9bb543849f474fcee8cad1c73bea6c1
Author: Philip Herron <philip.herron@embecosm.com>
Date: Fri Nov 5 10:47:48 2021 +0000
Add generic-arguments to predicate as_string
Diff:
---
gcc/rust/typecheck/rust-tyty-bounds.cc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gcc/rust/typecheck/rust-tyty-bounds.cc b/gcc/rust/typecheck/rust-tyty-bounds.cc
index 88c94d25111..c2c5e2e9100 100644
--- a/gcc/rust/typecheck/rust-tyty-bounds.cc
+++ b/gcc/rust/typecheck/rust-tyty-bounds.cc
@@ -70,7 +70,10 @@ namespace TyTy {
std::string
TypeBoundPredicate::as_string () const
{
- return get ()->as_string ();
+ return get ()->as_string ()
+ + (has_generic_args ()
+ ? std::string ("<") + args->as_string () + std::string (">")
+ : "");
}
const Resolver::TraitReference *
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-08 11:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 11:48 [gcc/devel/rust/master] Add generic-arguments to predicate as_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).