public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Arthur Cohen <arthur.cohen@embecosm.com>
To: David Malcolm <dmalcolm@redhat.com>, gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] gccrs: avoid printing to stderr in selftest::rust_flatten_list
Date: Mon, 2 Jan 2023 13:47:05 +0100	[thread overview]
Message-ID: <654b67a5-9dd8-15b5-9925-bf8297be8c8e@embecosm.com> (raw)
In-Reply-To: <20221216170152.457701-1-dmalcolm@redhat.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 1483 bytes --]

Hi David,

Sorry for the delayed reply!

On 12/16/22 18:01, David Malcolm wrote:
> 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");

Looks good to me. OK for trunk :)

Thanks for taking the time!

All the best,

-- 
Arthur Cohen <arthur.cohen@embecosm.com>

Toolchain Engineer

Embecosm GmbH

Geschäftsführer: Jeremy Bennett
Niederlassung: Nürnberg
Handelsregister: HR-B 36368
www.embecosm.de

Fürther Str. 27
90429 Nürnberg


Tel.: 091 - 128 707 040
Fax: 091 - 128 707 077

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3195 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

  reply	other threads:[~2023-01-02 12:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-16 17:01 David Malcolm
2023-01-02 12:47 ` Arthur Cohen [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=654b67a5-9dd8-15b5-9925-bf8297be8c8e@embecosm.com \
    --to=arthur.cohen@embecosm.com \
    --cc=dmalcolm@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).