Skip to content

Commit

Permalink
gccrs: avoid printing to stderr in selftest::rust_flatten_list
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
davidmalcolm authored and ouuleilei-bot committed Dec 16, 2022
1 parent 9bb7864 commit 82dd33c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gcc/rust/resolve/rust-ast-resolve-item.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 82dd33c

Please sign in to comment.