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] Merge #912 Date: Wed, 8 Jun 2022 12:04:52 +0000 (GMT) [thread overview] Message-ID: <20220608120452.1D22D3AA990F@sourceware.org> (raw) https://gcc.gnu.org/g:6d1ff568084ed86e6cf14e709fe6892256be824a commit 6d1ff568084ed86e6cf14e709fe6892256be824a Merge: 055ca34daa8 257bf558274 Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com> Date: Tue Feb 8 17:56:41 2022 +0000 Merge #912 912: Handle generic substitution on path expressions r=philberty a=philberty In this bug the path expression failed to take Foo::<i32> and apply this bound generic argument into the impl block. The fn type for this function test is: fn <T,Y>test(a:T, b:Y); But the impl block has a Self of Foo<T> so we need to inherit the T argument from the previous Foo::<i32> which was missing. Fixes #893 Co-authored-by: Philip Herron <philip.herron@embecosm.com> Diff: gcc/rust/typecheck/rust-hir-type-check-path.cc | 85 +++++++++++++++++------ gcc/rust/typecheck/rust-substitution-mapper.cc | 18 +++++ gcc/rust/typecheck/rust-substitution-mapper.h | 3 + gcc/rust/typecheck/rust-tyty.cc | 39 +++++++++++ gcc/rust/typecheck/rust-tyty.h | 51 ++++++++++++++ gcc/testsuite/rust/compile/torture/issue-893-2.rs | 35 ++++++++++ gcc/testsuite/rust/compile/torture/issue-893.rs | 11 +++ 7 files changed, 219 insertions(+), 23 deletions(-)
reply other threads:[~2022-06-08 12:04 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=20220608120452.1D22D3AA990F@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).