aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/hir/tree/rust-hir-item.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/rust/hir/tree/rust-hir-item.h b/gcc/rust/hir/tree/rust-hir-item.h
index 7445078..1d067fc 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,