public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #1147
@ 2022-06-08 12:34 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:34 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:75ac2f6fc0a12a7f75abfd5bcd79e508f5ae8fc7
commit 75ac2f6fc0a12a7f75abfd5bcd79e508f5ae8fc7
Merge: f0b6dca3fcd 639b3d61ab1
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date: Fri Apr 22 10:04:28 2022 +0000
Merge #1147
1147: Add missing coercion rule from array to slice r=philberty a=philberty
Arrays are coercible into slices, this adds the missing type-resolution
the rule which works for now. The other part of this fix is described in #1146
for coercion_site to be recursive and reuse the adjustment classes so that
we reuse as much code as possible and handle complex coercion sites.
Fixes #1129
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diff:
gcc/rust/typecheck/rust-tyty-coercion.h | 16 ++++++++++++++++
gcc/testsuite/rust/compile/issue-1129-1.rs | 4 ++++
gcc/testsuite/rust/compile/issue-1129-2.rs | 22 ++++++++++++++++++++++
3 files changed, 42 insertions(+)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-08 12:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 12:34 [gcc/devel/rust/master] Merge #1147 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).