public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Thomas Schwinge <tschwinge@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] macro: Use MacroInvocation's node_id in ExternalItem constructor. Date: Tue, 7 May 2024 16:22:08 +0000 (GMT) [thread overview] Message-ID: <20240507162208.5ED87384AB41@sourceware.org> (raw) https://gcc.gnu.org/g:b85dc7014c821466bb411a14b7f5d6de4077eae6 commit b85dc7014c821466bb411a14b7f5d6de4077eae6 Author: Arthur Cohen <arthur.cohen@embecosm.com> Date: Tue Mar 19 13:12:20 2024 +0100 macro: Use MacroInvocation's node_id in ExternalItem constructor. gcc/rust/ChangeLog: * ast/rust-macro.h: Use proper node id instead of the one in the base Expr class - which is uninitialized. Diff: --- gcc/rust/ast/rust-macro.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/rust/ast/rust-macro.h b/gcc/rust/ast/rust-macro.h index 5b9ff3f22c88..507e595e3790 100644 --- a/gcc/rust/ast/rust-macro.h +++ b/gcc/rust/ast/rust-macro.h @@ -727,7 +727,7 @@ private: {} MacroInvocation (const MacroInvocation &other) - : TraitItem (other.locus), ExternalItem (Expr::node_id), + : TraitItem (other.locus), ExternalItem (other.node_id), outer_attrs (other.outer_attrs), locus (other.locus), node_id (other.node_id), invoc_data (other.invoc_data), is_semi_coloned (other.is_semi_coloned), kind (other.kind),
next reply other threads:[~2024-05-07 16:22 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-05-07 16:22 Thomas Schwinge [this message] -- strict thread matches above, loose matches on Subject: below -- 2024-05-07 16:21 Thomas Schwinge
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=20240507162208.5ED87384AB41@sourceware.org \ --to=tschwinge@gcc.gnu.org \ --cc=gcc-cvs@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: linkBe 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).