aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.cc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-03-10 13:10:11 +0000
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:21:10 +0100
commitf0f04b256ceee2c8d7a24f0e0fcd8a0894fa48db (patch)
treeaca8ca8f8a72454cb041f2afc7e486f70aa8aee1 /gcc/rust/backend/rust-compile-expr.cc
parentef24a5b55876c38c73d8d8813df230b515936466 (diff)
downloadgcc-f0f04b256ceee2c8d7a24f0e0fcd8a0894fa48db.zip
gcc-f0f04b256ceee2c8d7a24f0e0fcd8a0894fa48db.tar.gz
gcc-f0f04b256ceee2c8d7a24f0e0fcd8a0894fa48db.tar.bz2
gccrs: reuse destructure code in compilation of types
We can just return error_mark_node instead of our own custom recursion limit checker code. This makes the backend more reuseable in error states. gcc/rust/ChangeLog: * backend/rust-compile-type.cc (TyTyResolveCompile::TyTyResolveCompile): call destructure (TyTyResolveCompile::compile): use error_mark_node (TyTyResolveCompile::visit): use error_mark_node * backend/rust-compile-type.h: remove recursive ops Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.cc')
0 files changed, 0 insertions, 0 deletions