diff options
Diffstat (limited to 'gcc/rust/ast/rust-item.h')
-rw-r--r-- | gcc/rust/ast/rust-item.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-item.h b/gcc/rust/ast/rust-item.h index fecb862..a9da337 100644 --- a/gcc/rust/ast/rust-item.h +++ b/gcc/rust/ast/rust-item.h @@ -3420,6 +3420,8 @@ public: // Returns whether trait has inner attributes. bool has_inner_attrs () const { return !inner_attrs.empty (); } + Identifier get_identifier () const { return name; } + // Mega-constructor Trait (Identifier name, bool is_unsafe, std::vector<std::unique_ptr<GenericParam> > generic_params, |