aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-03-30 14:56:00 +0100
committerPhilip Herron <philip.herron@embecosm.com>2022-04-11 11:44:59 +0100
commite7e6527975d2872c6e928dca6912604b021715cb (patch)
treed3e9ac4bc0ebba96ff6199321364513c95cd7afd
parent68458036c81d141a3899ac4e6ec6ddf0fdfde174 (diff)
downloadgcc-e7e6527975d2872c6e928dca6912604b021715cb.zip
gcc-e7e6527975d2872c6e928dca6912604b021715cb.tar.gz
gcc-e7e6527975d2872c6e928dca6912604b021715cb.tar.bz2
Add missing const for get_locus and helper to get used arguments
-rw-r--r--gcc/rust/typecheck/rust-tyty.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/rust/typecheck/rust-tyty.h b/gcc/rust/typecheck/rust-tyty.h
index 58b5042..6ddc05d 100644
--- a/gcc/rust/typecheck/rust-tyty.h
+++ b/gcc/rust/typecheck/rust-tyty.h
@@ -717,7 +717,7 @@ public:
return true;
}
- Location get_locus () { return locus; }
+ Location get_locus () const { return locus; }
size_t size () const { return mappings.size (); }
@@ -947,6 +947,11 @@ public:
virtual BaseType *handle_substitions (SubstitutionArgumentMappings mappings)
= 0;
+ SubstitutionArgumentMappings get_used_arguments () const
+ {
+ return used_arguments;
+ }
+
protected:
std::vector<SubstitutionParamMapping> substitutions;
SubstitutionArgumentMappings used_arguments;