]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: ast: Add optional diverging else to AST::LetStmt
authorArthur Cohen <arthur.cohen@embecosm.com>
Wed, 5 Mar 2025 15:31:56 +0000 (15:31 +0000)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 31 Mar 2025 19:07:15 +0000 (21:07 +0200)
commit79c54a83aa7cdb82be820ecc76d0e379c4bfa1d1
tree9949942e7592da0c73de1ebdc4242aa12ab2bd91
parent86699237eee63ae712a68c27edc59294ee68bc4e
gccrs: ast: Add optional diverging else to AST::LetStmt

gcc/rust/ChangeLog:

* ast/rust-stmt.h (class LetStmt): Add optional expression for diverging else.
* ast/rust-ast-builder.cc (Builder::let): Use new API.
gcc/rust/ast/rust-ast-builder.cc
gcc/rust/ast/rust-stmt.h