From 8f996567e84015714bcf322d11a46580611e3377 Mon Sep 17 00:00:00 2001 From: Arthur Cohen Date: Mon, 20 Jun 2022 14:57:21 +0200 Subject: hir: Add ConstGenericParam and lower to them properly --- gcc/rust/ast/rust-ast.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/rust/ast') diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index b4d401c..76324dc 100644 --- a/gcc/rust/ast/rust-ast.h +++ b/gcc/rust/ast/rust-ast.h @@ -1381,6 +1381,9 @@ public: } bool has_type () { return type != nullptr; } + bool has_default_value () { return default_value != nullptr; } + + const Identifier &get_name () const { return name; } std::unique_ptr &get_type () { -- cgit v1.1