]> gcc.gnu.org Git - gcc.git/commit
gccrs: lower: Add base for lowering FormatArgs nodes
authorArthur Cohen <arthur.cohen@embecosm.com>
Thu, 22 Feb 2024 13:59:17 +0000 (14:59 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 1 Aug 2024 11:12:14 +0000 (13:12 +0200)
commit5151b289ad4090072a12fb6ac6219c035118eb32
treed1875583bc90444cd225bd87aa99eaf70192383b
parent68cb878c1dab0636da4f686d6c8f5d4fa3b66e3b
gccrs: lower: Add base for lowering FormatArgs nodes

gcc/rust/ChangeLog:

* Make-lang.in: Compile the new source file.
* ast/rust-ast-collector.cc (TokenCollector::visit): Error out when
visiting FormatArgs nodes.
* resolve/rust-ast-resolve-base.cc (ResolverBase::visit): Likewise.
* hir/rust-ast-lower-expr.cc (ASTLoweringExpr::visit): Likewise.
* ast/rust-ast.cc (FormatArgs::get_locus): New.
* ast/rust-builtin-ast-nodes.h: Improve FormatArgs API.
* ast/rust-fmt.cc (Pieces::~Pieces): Cleanup.
(Pieces::Pieces): Likewise.
* ast/rust-fmt.h (struct Pieces): Add pieces_vector member.
* hir/rust-ast-lower-format-args.cc: New file.
* hir/rust-ast-lower-format-args.h: New file.
gcc/rust/Make-lang.in
gcc/rust/ast/rust-ast-collector.cc
gcc/rust/ast/rust-ast.cc
gcc/rust/ast/rust-builtin-ast-nodes.h
gcc/rust/ast/rust-fmt.cc
gcc/rust/ast/rust-fmt.h
gcc/rust/hir/rust-ast-lower-expr.cc
gcc/rust/hir/rust-ast-lower-format-args.cc [new file with mode: 0644]
gcc/rust/hir/rust-ast-lower-format-args.h [new file with mode: 0644]
gcc/rust/resolve/rust-ast-resolve-base.cc
This page took 0.058128 seconds and 5 git commands to generate.