aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-09-10 12:14:07 +0100
committerPhilip Herron <philip.herron@embecosm.com>2021-09-10 12:18:54 +0100
commit454b78dd044854440f358a3a64fae929937e1527 (patch)
tree58c512f844625ca90e1bb913ab12670ea772fa31
parentba31a24ddceb7d2d3f2d9da1526ccbd355f297f6 (diff)
downloadgcc-454b78dd044854440f358a3a64fae929937e1527.zip
gcc-454b78dd044854440f358a3a64fae929937e1527.tar.gz
gcc-454b78dd044854440f358a3a64fae929937e1527.tar.bz2
Add getter for Trait TypeBounds
-rw-r--r--gcc/rust/hir/tree/rust-hir-item.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/rust/hir/tree/rust-hir-item.h b/gcc/rust/hir/tree/rust-hir-item.h
index c6ac9bf..936e11f 100644
--- a/gcc/rust/hir/tree/rust-hir-item.h
+++ b/gcc/rust/hir/tree/rust-hir-item.h
@@ -2542,6 +2542,17 @@ public:
return generic_params;
}
+ std::vector<std::unique_ptr<TypeParamBound>> &get_type_param_bounds ()
+ {
+ return type_param_bounds;
+ }
+
+ const std::vector<std::unique_ptr<TypeParamBound>> &
+ get_type_param_bounds () const
+ {
+ return type_param_bounds;
+ }
+
protected:
/* Use covariance to implement clone function as returning this object
* rather than base */