diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-06-12 16:36:51 +0200 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-06-22 08:49:35 +0000 |
commit | d37a1d547014e87cf0fac0171974dca4a9d0db5f (patch) | |
tree | cdd3760de129a89c3cc5d2092226fa9e6160e05d /gcc/rust/resolve | |
parent | 650ae19d146ae80a0c0e13eb2ac979c8b7306fa9 (diff) | |
download | gcc-d37a1d547014e87cf0fac0171974dca4a9d0db5f.zip gcc-d37a1d547014e87cf0fac0171974dca4a9d0db5f.tar.gz gcc-d37a1d547014e87cf0fac0171974dca4a9d0db5f.tar.bz2 |
expand: Convert last statement to tail expr
Some inner statements may be expanded to statements as well as a tail
expression, which should then be propagated to the parent tail
expression field.
gcc/rust/ChangeLog:
* expand/rust-expand-visitor.cc (ExpandVisitor::visit): Change
call to expand_inner_stmts.
(expand_tail_expr): Change argument name and try to expand the
last statement as a tail expression once all statements have
been expanded.
* expand/rust-expand-visitor.h: Change prototype to accept
parent class.
* ast/rust-expr.h: Add try_convert_last_stmt function prototype.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/resolve')
0 files changed, 0 insertions, 0 deletions