]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: derive: Add const generics when deriving impls
authorArthur Cohen <arthur.cohen@embecosm.com>
Wed, 9 Apr 2025 09:18:06 +0000 (11:18 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 5 Aug 2025 14:36:46 +0000 (16:36 +0200)
commite07ed4f016e2e1c1223d5a4eef09dc8c09f9782e
tree875139f32dad37a6abaae4da750571021dc7fe6e
parent535aaf9882c44598c89a8d91153b831c11cb9ea1
gccrs: derive: Add const generics when deriving impls

gcc/rust/ChangeLog:

* ast/rust-ast-builder.cc (Builder::new_const_param): New function.
* ast/rust-ast-builder.h (vec): New function for creating 3 elts vector.
* expand/rust-derive.cc: Use the new_const_param builder.
* ast/rust-path.h: Add get_default_value() method.
gcc/rust/ast/rust-ast-builder.cc
gcc/rust/ast/rust-ast-builder.h
gcc/rust/ast/rust-path.h
gcc/rust/expand/rust-derive.cc