From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 0421E3858C62; Sat, 22 Oct 2022 10:48:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0421E3858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666435722; bh=Lu5ZSsiTPwgx3xvZ06Y66ZZcs9OZG10ydOnVeFB3YDs=; h=From:To:Subject:Date:From; b=eDLKpcPdRWXrgL/vJZweokVx2xxRRNXBFuTmRiy8ubCtoP8L0sicr037fVykapsZy aYb26B4XMbDCBlKrrQ36a4lC8Zz1fKafv7lNjla6cw3o5OEWCUHx7j8y5Jy/WWR1LK axv1FVBrSmD26cjx5vwtmGSnxrlZbtbjFEzBY7BE= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] Merge #1607 X-Act-Checkin: gcc X-Git-Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com> X-Git-Refname: refs/heads/devel/rust/master X-Git-Oldrev: dfb5921b76589c09e7794f5f8010427b93616e9d X-Git-Newrev: 60b21d2f58f46c93fc33f6192682abfed62d8dd9 Message-Id: <20221022104842.0421E3858C62@sourceware.org> Date: Sat, 22 Oct 2022 10:48:42 +0000 (GMT) List-Id: https://gcc.gnu.org/g:60b21d2f58f46c93fc33f6192682abfed62d8dd9 commit 60b21d2f58f46c93fc33f6192682abfed62d8dd9 Merge: dfb5921b765 89490980726 Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com> Date: Fri Oct 21 13:05:18 2022 +0000 Merge #1607 1607: Improve AST Fragment class r=CohenArthur a=CohenArthur This changes the APIs around creating AST fragments and refactors the class into its own header and source file, hopefully making it easier to use. This will also help creating "unexpanded" AST fragments for proper builtin macro expansion with the new fixed-point algorithm introduced by #1606 `@liushuyu` pinging you since you've worked extensively with the macro system. Would love your review! Co-authored-by: Arthur Cohen Diff: gcc/rust/Make-lang.in | 1 + gcc/rust/ast/rust-ast-fragment.cc | 171 +++++++++++++++++++++++++++++++ gcc/rust/ast/rust-ast-fragment.h | 118 +++++++++++++++++++++ gcc/rust/ast/rust-ast.h | 132 ------------------------ gcc/rust/ast/rust-macro.h | 18 ++-- gcc/rust/expand/rust-attribute-visitor.h | 4 +- gcc/rust/expand/rust-macro-builtins.cc | 72 ++++++------- gcc/rust/expand/rust-macro-builtins.h | 40 ++++---- gcc/rust/expand/rust-macro-expand.cc | 42 ++++---- gcc/rust/expand/rust-macro-expand.h | 23 ++--- gcc/rust/util/rust-hir-map.cc | 4 +- 11 files changed, 390 insertions(+), 235 deletions(-)