public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #1384
@ 2022-07-15 10:58 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-07-15 10:58 UTC (permalink / raw)
To: gcc-cvs
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(-)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-15 10:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-15 10:58 [gcc/devel/rust/master] Merge #1384 Thomas Schwinge
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).