public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #1266
@ 2022-06-08 12:49 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:49 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:c7008d3e254786b5e752aa61e067f62c38042b81
commit c7008d3e254786b5e752aa61e067f62c38042b81
Merge: 9204e7a1ac6 a647c005908
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date: Mon May 23 11:03:46 2022 +0000
Merge #1266
1266: Make TyTy::BaseType::destructure recursive r=philberty a=philberty
In the case of Generic Associated Types we end up
placeholders->projections->generic-param->i32
This means we need to keep destructuring the TyTy object until we finally
get the real type at the end. In order to do this safely we need to ensure
we add in recursion limits and apply this where it matters such as
compiling types in general too.
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diff:
gcc/rust/backend/rust-compile-type.cc | 12 +++++--
gcc/rust/backend/rust-compile-type.h | 7 ++--
gcc/rust/lang.opt | 4 +++
gcc/rust/typecheck/rust-tyty.cc | 62 ++++++++++++++++++++++-------------
4 files changed, 54 insertions(+), 31 deletions(-)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-08 12:49 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:49 [gcc/devel/rust/master] Merge #1266 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).