aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-gcc.cc
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2023-04-26 09:29:04 -0400
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:34:16 +0100
commitb181ea7289b229b1e5971ccbbdd4f74dbdacefa9 (patch)
tree895086ac63c219ccd31d21eed616da74d7aa554c /gcc/rust/rust-gcc.cc
parent35a4c25ae45adc7439327c8981e63f824c88fa5c (diff)
downloadgcc-b181ea7289b229b1e5971ccbbdd4f74dbdacefa9.zip
gcc-b181ea7289b229b1e5971ccbbdd4f74dbdacefa9.tar.gz
gcc-b181ea7289b229b1e5971ccbbdd4f74dbdacefa9.tar.bz2
gccrs: Handle replacing stripped tail expressions
gcc/rust/ChangeLog: * ast/rust-ast.cc (BlockExpr::strip_tail_expr): Try to take new tail expression from statements list. * ast/rust-expr.h (BlockExpr::strip_tail_expr): Replace definition with only declaration. gcc/testsuite/ChangeLog: * rust/execute/torture/cfg-tail.rs: New test. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/rust-gcc.cc')
0 files changed, 0 insertions, 0 deletions