public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Thomas Schwinge <tschwinge@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] Add missing const for get_locus and helper to get used arguments Date: Wed, 8 Jun 2022 12:27:38 +0000 (GMT) [thread overview] Message-ID: <20220608122738.4BAD7386DC45@sourceware.org> (raw) https://gcc.gnu.org/g:e7e6527975d2872c6e928dca6912604b021715cb commit e7e6527975d2872c6e928dca6912604b021715cb Author: Philip Herron <philip.herron@embecosm.com> Date: Wed Mar 30 14:56:00 2022 +0100 Add missing const for get_locus and helper to get used arguments Diff: --- gcc/rust/typecheck/rust-tyty.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/rust/typecheck/rust-tyty.h b/gcc/rust/typecheck/rust-tyty.h index 58b5042c34a..6ddc05dba50 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;
reply other threads:[~2022-06-08 12:27 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220608122738.4BAD7386DC45@sourceware.org \ --to=tschwinge@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).