]> git.ipfire.org Git - thirdparty/gcc.git/commit
Allow variadic NamedFunctionParam
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 18 Oct 2023 13:30:57 +0000 (15:30 +0200)
committerPhilip Herron <philip.herron@embecosm.com>
Thu, 9 Nov 2023 15:39:45 +0000 (15:39 +0000)
commitb47dee55b1b990f17788f74179a9a062fa4730d5
tree69b2b288fbb0c19016eb0e0a970fb6c8889c5ed5
parent56d6246dbbbaf7566d31f94654c96dc5a4681e49
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