aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.h
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-10-19 17:04:07 +0000
committerGitHub <noreply@github.com>2022-10-19 17:04:07 +0000
commit9ecbc9008748672b1a47fab6d40ebe5a31507969 (patch)
treef5f5a48029b5a03dd651cb78e2ae8c880c74e0e4 /gcc/rust/backend/rust-compile-expr.h
parent381e061438836b7ca360c7741e9a13ec6d643b1d (diff)
parent0a52177612f6e855732c6ded77a04ba40dfb0d19 (diff)
downloadgcc-9ecbc9008748672b1a47fab6d40ebe5a31507969.zip
gcc-9ecbc9008748672b1a47fab6d40ebe5a31507969.tar.gz
gcc-9ecbc9008748672b1a47fab6d40ebe5a31507969.tar.bz2
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>
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions