From e7e6527975d2872c6e928dca6912604b021715cb Mon Sep 17 00:00:00 2001 From: Philip Herron Date: Wed, 30 Mar 2022 14:56:00 +0100 Subject: Add missing const for get_locus and helper to get used arguments --- gcc/rust/typecheck/rust-tyty.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc') 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 substitutions; SubstitutionArgumentMappings used_arguments; -- cgit v1.1