diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-08-25 15:33:02 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-08-25 15:33:02 +0100 |
commit | 727afe64d6c6ccc6c360da0707de4b2bd74a96d9 (patch) | |
tree | ea563c5efee59807e61e7793372336b94d129579 /gcc/rust/backend/rust-compile-expr.h | |
parent | d3cf195ab46d7effe806990aa6b7a409bf8e46df (diff) | |
download | gcc-727afe64d6c6ccc6c360da0707de4b2bd74a96d9.zip gcc-727afe64d6c6ccc6c360da0707de4b2bd74a96d9.tar.gz gcc-727afe64d6c6ccc6c360da0707de4b2bd74a96d9.tar.bz2 |
Desugar double borrows into two HIR:BorrowExpr's
We simply hit a gcc_unreachable() on double borrows but it seems reasonable
to just desugar the AST into a borrow of a borrow to foo. Instead of a
borrow expression with a flag to be respected.
Fixes #1506
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions