public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] gccrs: avoid printing to stderr in selftest::rust_flatten_list
@ 2022-12-16 17:01 David Malcolm
  2023-01-02 12:47 ` Arthur Cohen
  0 siblings, 1 reply; 6+ messages in thread
From: David Malcolm @ 2022-12-16 17:01 UTC (permalink / raw)
  To: gcc-patches, Arthur Cohen; +Cc: David Malcolm

Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.

OK for trunk?

gcc/rust/ChangeLog:
	* resolve/rust-ast-resolve-item.cc (selftest::rust_flatten_list):
	Remove output to stderr.

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
---
 gcc/rust/resolve/rust-ast-resolve-item.cc | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/gcc/rust/resolve/rust-ast-resolve-item.cc b/gcc/rust/resolve/rust-ast-resolve-item.cc
index 0c38f28d530..1276e845acc 100644
--- a/gcc/rust/resolve/rust-ast-resolve-item.cc
+++ b/gcc/rust/resolve/rust-ast-resolve-item.cc
@@ -1202,9 +1202,6 @@ rust_flatten_list (void)
   auto paths = std::vector<Rust::AST::SimplePath> ();
   Rust::Resolver::flatten_list (list, paths);
 
-  for (auto &path : paths)
-    fprintf (stderr, "%s\n", path.as_string ().c_str ());
-
   ASSERT_TRUE (!paths.empty ());
   ASSERT_EQ (paths.size (), 2);
   ASSERT_EQ (paths[0].get_segments ()[0].as_string (), "foo");
-- 
2.26.3


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-01-05 16:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-16 17:01 [PATCH] gccrs: avoid printing to stderr in selftest::rust_flatten_list David Malcolm
2023-01-02 12:47 ` Arthur Cohen
2023-01-04 19:28   ` David Malcolm
2023-01-05 14:44     ` Arthur Cohen
2023-01-05 15:36       ` David Malcolm
2023-01-05 16:36         ` Arthur Cohen

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).