]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: desugar: Handle try-blocks
authorArthur Cohen <arthur.cohen@embecosm.com>
Tue, 22 Jul 2025 11:30:11 +0000 (13:30 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 5 Aug 2025 14:36:58 +0000 (16:36 +0200)
commit499a70699bcaff13998fa8eb6136c15dfa0b7f41
tree22b7f8468ba7e3d6c1ecdeea9338182ba5fd8789
parentba00ed09766d9698136020418f12e59ccb656af7
gccrs: desugar: Handle try-blocks

gcc/rust/ChangeLog:

* Make-lang.in: Compile it.
* ast/rust-expression-yeast.cc (ExpressionYeast::dispatch): Dispatch to try-block
desugar.
* ast/rust-desugar-try-block.cc: New file.
* ast/rust-desugar-try-block.h: New file.

gcc/testsuite/ChangeLog:

* rust/compile/try_block1.rs: New test.
gcc/rust/Make-lang.in
gcc/rust/ast/rust-desugar-try-block.cc [new file with mode: 0644]
gcc/rust/ast/rust-desugar-try-block.h [new file with mode: 0644]
gcc/rust/ast/rust-expression-yeast.cc
gcc/testsuite/rust/compile/try_block1.rs [new file with mode: 0644]