Message ID | 20230221120230.596966-35-arthur.cohen@embecosm.com |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1835638wrn; Tue, 21 Feb 2023 04:34:11 -0800 (PST) X-Google-Smtp-Source: AK7set8Ulmg6W7U0auQDFqFc4lxHpMiXrKI3XDS1CaGmb99dPZzuH8NTGkq+OOh1iaAtnFmGWskv X-Received: by 2002:a17:907:d405:b0:8af:12d9:a4ac with SMTP id vi5-20020a170907d40500b008af12d9a4acmr10675393ejc.25.1676982851654; Tue, 21 Feb 2023 04:34:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676982851; cv=none; d=google.com; s=arc-20160816; b=w/1xHwgOi+bEsdj3WTKoed2o6Dcq4yrg4y+bcfr277U+Mh7oURKLJbSbxCNk6Wu9Cp dDzV3i/C96JSDtyGdKEZSaicD1XtPaXf1iz9P5JEGspIXC1dM013ww3VkE2McEZGqL9I bVLk1gOZc1DV7oZpPaCwekrW/716QSn96kMGQt4vsvNePYbrfAaC7idiSmOiX60ndhYb vYcwfemjOwUI6Zvu4rJXsPtROnJKYMCrkSElSrJQZgh0YzsZ54HJjkUH1+I6HH21ZXO7 HxmtZqAOK2fZEw6iBOAe7RHYStulobmvQKQYA3rbdGylQUu+O7d5lSTDyXguDA7Z1FHg apOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dmarc-filter :delivered-to; bh=hyrW4gYeLWwwOBxOHyE+rSZZYnyLfq0C8muqnzvHhAg=; b=u8b6edb+zSasSbAt+hdI4FtwuM9feLIJHTX3lR5+ip0EZ/gKxOiD1T48un1rTjOy1v eiiMzJCnuG1Odh2YiIi2XNOvVVgH4PT1wuRmfXX3uSXfuEfvNTFiSdm/agu9CsF/TPK7 bCveJP3S9tln3bqZlZmshdeKvDIFOO1vuKc3tKKd3OyeIS5MTY4859ktGIAyo73dXOwu UE80gezmurSAn3PMcr7AMZWNkS8GUu1XLLFhguvQF78qyjTf06LalXa1tENrRLBJLGOG LN0ntpg2EXBqgt+gmdjrlUFfHy9KIuXZwosD18v7Qot9h5TkQVwZmcyDXO7+Zh0b/y7E q1IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b="ACbf//CA"; 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" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ge9-20020a170907908900b008de4a641ff4si2702063ejb.412.2023.02.21.04.34.11 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:34:11 -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=@embecosm.com header.s=google header.b="ACbf//CA"; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4FB0C38BDBEE for <ouuuleilei@gmail.com>; Tue, 21 Feb 2023 12:12:25 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id AF60F383E2BF for <gcc-patches@gcc.gnu.org>; Tue, 21 Feb 2023 12:03:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AF60F383E2BF Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-wr1-x42c.google.com with SMTP id j2so3982252wrh.9 for <gcc-patches@gcc.gnu.org>; Tue, 21 Feb 2023 04:03:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=hyrW4gYeLWwwOBxOHyE+rSZZYnyLfq0C8muqnzvHhAg=; b=ACbf//CAh8VnJZWdzO7t6ZnQOrpqjBotOglYr2wbY9TZYhi9VNyCkfijBzHiqAMCpD 5ps0w9QbwFTXdGKvTCR0Wuk3+GVf1n9FFB44mwQjx5UX8Y7DclZs8vJHFoeXJC4/fh+R tpAyVy67ouwYTl2cnMnbktrZHTVNLJN9u+Y99EDgRgsDKey9/pMJdpvxD6mubE4/wm2i eyip49xGPS5JWdxTyO58evmtHRwy5MINxD4gE+4O2UWMYrz+dZCFmu+T6y5Ory4uT4pL f0u1aRHsYxeG8Ai8KjR/cWV5ABauyx/YpRY0TGsY6iq3e9HQcQ7NsrgV4YZWjmHpVfUH D1oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hyrW4gYeLWwwOBxOHyE+rSZZYnyLfq0C8muqnzvHhAg=; b=IloLKTCUPghmghrdrH9F3dWdn8+w15Gc5T026CtXDhDyjVa5CvOwImchRUSCG3fIUH znJj4ysHTnQO1zb3DJcxiTleLA2xmFBDvBF3zDxnwseBiqUM/wyfUgYEL7q35wn4I5S9 8MVb3m4awj/v7S9iUYwfiCd/++L2ojw5Gnat7NPCgG90XDM5fCFLVN9nL7IyIixhpYxq cc6IewT4xl2od01o6j+ur4fl1mZJ+LPgoZGfBmT6FbzOx9y0WJrrqsQkozDiw+tGxtq+ I8fXH9JFkoGTdk0xEWdSDSkpP1/UxzkDD1dy2GbLyVhGNJ7Nj6Gg2nZCD9NeKyaFSHbQ J0Dg== X-Gm-Message-State: AO0yUKXOI7nqflWZVdTl8xoYRV1063ED8XwLrsVvwtPjPuvso1pP1OKq eHeIJVY3CsE7dRddYj43KMdlGxiOoSsQKBPIag== X-Received: by 2002:adf:e199:0:b0:2c5:4659:3e76 with SMTP id az25-20020adfe199000000b002c546593e76mr3680965wrb.18.1676981030129; Tue, 21 Feb 2023 04:03:50 -0800 (PST) Received: from platypus.localdomain ([62.23.166.218]) by smtp.gmail.com with ESMTPSA id c15-20020adffb4f000000b002c55b0e6ef1sm5013811wrs.4.2023.02.21.04.03.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 04:03:49 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Arthur Cohen <arthur.cohen@embecosm.com> Subject: [committed 034/103] gccrs: dump: Emit visibility when dumping items Date: Tue, 21 Feb 2023 13:01:24 +0100 Message-Id: <20230221120230.596966-35-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230221120230.596966-1-arthur.cohen@embecosm.com> References: <20230221120230.596966-1-arthur.cohen@embecosm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-15.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Reply-To: arthur.cohen@embecosm.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758442157789204990?= X-GMAIL-MSGID: =?utf-8?q?1758443970618516914?= |
Series |
[committed,001/103] gccrs: Fix missing dead code analysis ICE on local enum definition
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Arthur Cohen
Feb. 21, 2023, 12:01 p.m. UTC
From: Arthur Cohen <arthur.cohen@embecosm.com>
gcc/rust/ChangeLog:
* ast/rust-ast-dump.cc: Emit visibility when dumping items.
---
gcc/rust/ast/rust-ast-dump.cc | 1 +
1 file changed, 1 insertion(+)
Comments
Just noticed this by chance: How does this patch constitute a functional change (that matches the ChangeLog)? It looks it only adds an empty line to the source code? Gerald On Tue, 21 Feb 2023, arthur.cohen@embecosm.com wrote: > From: Arthur Cohen <arthur.cohen@embecosm.com> > > gcc/rust/ChangeLog: > > * ast/rust-ast-dump.cc: Emit visibility when dumping items. > --- > gcc/rust/ast/rust-ast-dump.cc | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc > index fdcd97561bb..b7557bdee0c 100644 > --- a/gcc/rust/ast/rust-ast-dump.cc > +++ b/gcc/rust/ast/rust-ast-dump.cc > @@ -835,6 +835,7 @@ void > Dump::visit (Function &function) > { > emit_visibility (function.get_visibility ()); > + > stream << "fn " << function.get_function_name (); > if (function.has_generics ()) > emit_generic_params (function.get_generic_params ());
On 2/23/23 02:01, Gerald Pfeifer wrote: > Just noticed this by chance: > > How does this patch constitute a functional change (that matches the > ChangeLog)? It looks it only adds an empty line to the source code? Huh. That is weird. Sorry about that! This range of commits on our AST dump contained commits that did not pass the testsuite or bootstrap properly. When trying to get them in shape for upstreaming (adding Changelog entries and ensuring that they build and pass our tests), I added some of the Changelogs before merging invalid commits into valid ones. I must have made a mistake and should have squashed this commit into another one. Sorry about that. As I mentioned above in the thread, this is the last time that such mistakes will happen as we are now enforcing proper Changelogs for all commits, and are putting together even more testing. Kindly, Arthur > > Gerald > > On Tue, 21 Feb 2023, arthur.cohen@embecosm.com wrote: >> From: Arthur Cohen <arthur.cohen@embecosm.com> >> >> gcc/rust/ChangeLog: >> >> * ast/rust-ast-dump.cc: Emit visibility when dumping items. >> --- >> gcc/rust/ast/rust-ast-dump.cc | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc >> index fdcd97561bb..b7557bdee0c 100644 >> --- a/gcc/rust/ast/rust-ast-dump.cc >> +++ b/gcc/rust/ast/rust-ast-dump.cc >> @@ -835,6 +835,7 @@ void >> Dump::visit (Function &function) >> { >> emit_visibility (function.get_visibility ()); >> + >> stream << "fn " << function.get_function_name (); >> if (function.has_generics ()) >> emit_generic_params (function.get_generic_params ()); >
diff --git a/gcc/rust/ast/rust-ast-dump.cc b/gcc/rust/ast/rust-ast-dump.cc index fdcd97561bb..b7557bdee0c 100644 --- a/gcc/rust/ast/rust-ast-dump.cc +++ b/gcc/rust/ast/rust-ast-dump.cc @@ -835,6 +835,7 @@ void Dump::visit (Function &function) { emit_visibility (function.get_visibility ()); + stream << "fn " << function.get_function_name (); if (function.has_generics ()) emit_generic_params (function.get_generic_params ());