public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #1602
@ 2022-10-19 19:45 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-10-19 19:45 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:9ecbc9008748672b1a47fab6d40ebe5a31507969

commit 9ecbc9008748672b1a47fab6d40ebe5a31507969
Merge: 381e0614388 0a52177612f
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date:   Wed Oct 19 17:04:07 2022 +0000

    Merge #1602
    
    1602: Add check for recursive trait cycles r=philberty a=philberty
    
    This adds a new RAII style TraitQueryGuard so that we can manage the query lifetime when resolving a trait. This adds in a DefId into a set when we begin to resolve and then finally removes it when completed. This allows us to add in a check at the start if this DefId is already within the set which means this is a trait cycle.
    
    Fixes #1589
    
    
    Co-authored-by: Philip Herron <philip.herron@embecosm.com>

Diff:

 gcc/rust/typecheck/rust-hir-trait-resolve.cc | 12 +++++++++++-
 gcc/rust/typecheck/rust-hir-type-check.h     | 29 ++++++++++++++++++++++++++++
 gcc/testsuite/rust/compile/issue-1589.rs     |  5 +++++
 3 files changed, 45 insertions(+), 1 deletion(-)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-19 19:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-19 19:45 [gcc/devel/rust/master] Merge #1602 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).