public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #1507
@ 2022-08-29 15:36 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-08-29 15:36 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:595cbafdf342369ceaffd8fb4d909a9c31bef207
commit 595cbafdf342369ceaffd8fb4d909a9c31bef207
Merge: 1416b85322c 727afe64d6c
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date: Thu Aug 25 15:24:50 2022 +0000
Merge #1507
1507: Desugar double borrows into two HIR:BorrowExpr's r=philberty a=philberty
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
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diff:
gcc/rust/hir/rust-ast-lower-expr.h | 27 ++++++++++++++++++++----
gcc/rust/hir/tree/rust-hir-expr.h | 5 ++---
gcc/rust/typecheck/rust-hir-type-check-expr.cc | 6 ------
gcc/testsuite/rust/compile/torture/issue-1506.rs | 3 +++
4 files changed, 28 insertions(+), 13 deletions(-)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-29 15:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-29 15:36 [gcc/devel/rust/master] Merge #1507 Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).