public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8846] gccrs: HIR: Add mising getter
@ 2024-02-07 12:43 Arthur Cohen
0 siblings, 0 replies; only message in thread
From: Arthur Cohen @ 2024-02-07 12:43 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:459b61c7b3cf8b7c10d2b947d69ffabd435f3530
commit r14-8846-g459b61c7b3cf8b7c10d2b947d69ffabd435f3530
Author: Jakub Dupak <dev@jakubdupak.com>
Date: Tue Jan 23 13:55:20 2024 +0100
gccrs: HIR: Add mising getter
gcc/rust/ChangeLog:
* hir/tree/rust-hir-item.h: Add missing getter
Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
Diff:
---
gcc/rust/hir/tree/rust-hir-item.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gcc/rust/hir/tree/rust-hir-item.h b/gcc/rust/hir/tree/rust-hir-item.h
index 74450786e89a..1d067fca5bec 100644
--- a/gcc/rust/hir/tree/rust-hir-item.h
+++ b/gcc/rust/hir/tree/rust-hir-item.h
@@ -3062,6 +3062,11 @@ public:
// Returns whether item has a where clause.
bool has_where_clause () const { return !where_clause.is_empty (); }
+ WARN_UNUSED_RESULT const WhereClause &get_where_clause () const
+ {
+ return where_clause;
+ }
+
ExternalFunctionItem (
Analysis::NodeMapping mappings, Identifier item_name,
std::vector<std::unique_ptr<GenericParam>> generic_params,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-07 12:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-07 12:43 [gcc r14-8846] gccrs: HIR: Add mising getter Arthur Cohen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).