From patchwork Fri Dec 16 17:01:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 34032 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp1082814wrn; Fri, 16 Dec 2022 09:03:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf4+T0KrK47EWHDe5HNPYZFSQ1hy/2+viFmSQeICigIiM8qUc5Z7S2idYrX2ggMqxGBR7YM/ X-Received: by 2002:a17:906:b810:b0:7c1:5467:39b1 with SMTP id dv16-20020a170906b81000b007c1546739b1mr20648563ejb.72.1671210199035; Fri, 16 Dec 2022 09:03:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671210199; cv=none; d=google.com; s=arc-20160816; b=oU5TVrZ3KMp9UMj9si/jH4AG/G8+w4oe8pbWwRSk4Jt6eogMqgKYdwdt1QfZVCAAV1 O0tFrNOm913pQd8WjPtXnXGZI24tLjuUMtudIGfRd2YPXRTrVw0saJrpcHj5Gq/aA3ib Viz1g63/ibbNrHMGRU3NbFHjzo8zVwZQkZTBh9KZeEgHGyRxHeYjj707+qs2KmYQIqL7 1GBRWQCx8NHSxFxsw9VCESxXbgKn/wzQh+CZAODdNrFyHZ/Gh5Wf6e+VM/hAkq3fApDB ADv1Aejd3PbDZ+PXeDh8cOrtmlsRMg6LESJVZIbT2OtIcYrn6gtgkQmv1n0C1U3EIFbP dTDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=Fmly51CH1d8c0zqpdOEGmqUv60ulJc+uyetPry3nucU=; b=glAMrrA4KS7D6eKhoESWTtFoDMdcX41oNv8KOE+5BR2e+ucMLcVhl0IfJkWEjaQamg tVULYK9oEL478/dKsk3yXXBnqt6/9b6pPgXTfEAakbwWjduWvZ8Ie9Sd0JYML7DpZ3G6 BZEFOeS5CWb9zGd6MMeJZYZzrcorQJCPyhsEnS2m9mXBzdfyeELJFfVgrIYGW3t0x4BA uHD9GPCX2+ZF4hWEIjMnoFS62e6MvnpxQaso6uKhxYRyoIRtzUp6UuiIxXWJtAL9HiNn T9Tr5KjPLiITYLkvguO9+vAn61WwtDxpD4/FP4lBxCxarvKMtMeKFM5GuOYnHOtbXaSV IQUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=E3yybAtf; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id q15-20020a056402518f00b0046a0331778dsi3348498edd.118.2022.12.16.09.03.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Dec 2022 09:03:19 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=E3yybAtf; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 095F738378E5 for ; Fri, 16 Dec 2022 17:03:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 095F738378E5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671210198; bh=Fmly51CH1d8c0zqpdOEGmqUv60ulJc+uyetPry3nucU=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=E3yybAtfwatI9Pt2Khll3PCp0eFAo1lJDe6qMqaptvkQ28P4oNQkbl35YFRr6fCqQ Z7YBzLX06y9nmhHi+jNyHQqoc3rlgu6OTDsnVZXeNHk3WKc8Ia/KdGSz6axT9M/7M4 wgMHZEAcc4+W4HHX5gYM2oWCZUba8WCBn+1ZBgCA= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id B328A383759F for ; Fri, 16 Dec 2022 17:01:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B328A383759F Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-371-vqWoHc_uNoKU5br94BznLQ-1; Fri, 16 Dec 2022 12:01:53 -0500 X-MC-Unique: vqWoHc_uNoKU5br94BznLQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1FD20101A52E; Fri, 16 Dec 2022 17:01:53 +0000 (UTC) Received: from t14s.localdomain.com (unknown [10.2.17.99]) by smtp.corp.redhat.com (Postfix) with ESMTP id E546DC15BA0; Fri, 16 Dec 2022 17:01:52 +0000 (UTC) To: gcc-patches@gcc.gnu.org, Arthur Cohen Cc: David Malcolm Subject: [PATCH] gccrs: avoid printing to stderr in selftest::rust_flatten_list Date: Fri, 16 Dec 2022 12:01:52 -0500 Message-Id: <20221216170152.457701-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: David Malcolm via Gcc-patches From: David Malcolm Reply-To: David Malcolm Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752390905438745740?= X-GMAIL-MSGID: =?utf-8?q?1752390905438745740?= 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 --- 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::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");