]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Allow variadic NamedFunctionParam
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 18 Oct 2023 13:30:57 +0000 (15:30 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:13:12 +0000 (19:13 +0100)
commitdf4e37c7dcf41d87d33c8359741d262e2732528e
treed10c2e4989b121392b0c7f41ede32a31b6edc7d8
parent41f480d16d3c6cc1e901d2ae3fcd4a9b5706aa51
gccrs: Allow variadic NamedFunctionParam

This was made to align NamedFunctionParam with FunctionParam.

gcc/rust/ChangeLog:

* ast/rust-item.h (class NamedFunctionParam): Add variadic boolean and
another constructor.
* hir/rust-ast-lower-extern.h: Avoid last parameter when variadic.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/ast/rust-item.h
gcc/rust/hir/rust-ast-lower-extern.h