Skip to content

Commit a6cd608

Browse files
committed
Add missing const for get_locus and helper to get used arguments
1 parent f658340 commit a6cd608

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

gcc/rust/typecheck/rust-tyty.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ class SubstitutionArgumentMappings
717717
return true;
718718
}
719719

720-
Location get_locus () { return locus; }
720+
Location get_locus () const { return locus; }
721721

722722
size_t size () const { return mappings.size (); }
723723

@@ -947,6 +947,11 @@ class SubstitutionRef
947947
virtual BaseType *handle_substitions (SubstitutionArgumentMappings mappings)
948948
= 0;
949949

950+
SubstitutionArgumentMappings get_used_arguments () const
951+
{
952+
return used_arguments;
953+
}
954+
950955
protected:
951956
std::vector<SubstitutionParamMapping> substitutions;
952957
SubstitutionArgumentMappings used_arguments;

0 commit comments

Comments
 (0)