]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: desugar: Add base for desugaring while-let loops
authorArthur Cohen <arthur.cohen@embecosm.com>
Tue, 22 Jul 2025 15:16:02 +0000 (17:16 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 5 Aug 2025 14:37:00 +0000 (16:37 +0200)
commitbdb6f7f2c065c878f84e9d52c74962cb2d40fc2c
treebcf20ad6fc6070789870095c2a700253a78d1310
parente705ad248a22d4a6d7bb54655bf71d5b6404382d
gccrs: desugar: Add base for desugaring while-let loops

gcc/rust/ChangeLog:

* Make-lang.in:
* ast/rust-expression-yeast.cc (ExpressionYeast::dispatch_loops): Call DesugarWhileLet.
* ast/rust-desugar-while-let.cc: New file.
* ast/rust-desugar-while-let.h: New file.

gcc/testsuite/ChangeLog:

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