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 #1384
Date: Fri, 15 Jul 2022 10:58:26 +0000 (GMT)	[thread overview]
Message-ID: <20220715105826.461BD3857831@sourceware.org> (raw)

https://gcc.gnu.org/g:d155a54785cb7b40ada7ae748997d717a4b27ab9

commit d155a54785cb7b40ada7ae748997d717a4b27ab9
Merge: ab9f7f287ef 95aa351e657
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date:   Fri Jul 15 09:27:28 2022 +0000

    Merge #1384
    
    1384: Support generics in check for valid types in arithmetic expressions r=philberty a=philberty
    
    When we check for valid types we need to be sure to call destructure which
    will extract out any generics so that we are checking the actual concrete
    type that is being used here.
    
    Fixes #1383
    
    
    Co-authored-by: Philip Herron <philip.herron@embecosm.com>

Diff:

 gcc/rust/typecheck/rust-hir-type-check-expr.h | 14 +++++++++-----
 gcc/testsuite/rust/compile/issue-1383.rs      |  8 ++++++++
 2 files changed, 17 insertions(+), 5 deletions(-)


                 reply	other threads:[~2022-07-15 10:58 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=20220715105826.461BD3857831@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: link
Be 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).