aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-expr.h
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2025-04-03 15:39:58 +0100
committerPhilip Herron <philip.herron@embecosm.com>2025-04-03 16:40:47 +0000
commit314090971a51037bb77e36b46c7a10652b9e6c3f (patch)
tree06a5d5217c4db2b7b12502fb447885ae186a0968 /gcc/rust/ast/rust-expr.h
parent002c349b6d0f8c12d26beaff178785524f155583 (diff)
downloadgcc-314090971a51037bb77e36b46c7a10652b9e6c3f.zip
gcc-314090971a51037bb77e36b46c7a10652b9e6c3f.tar.gz
gcc-314090971a51037bb77e36b46c7a10652b9e6c3f.tar.bz2
gccrs: Fix ICE on raw reference
This patch adds support for raw references which enforce the pointer type away from a reference type. Fixes Rust-GCC#3667 gcc/rust/ChangeLog: * backend/rust-compile-base.cc (HIRCompileBase::address_expression): allow optional type * backend/rust-compile-base.h: update prototype * backend/rust-compile-expr.cc (CompileExpr::visit): update borrow expr * backend/rust-compile-extern.h: remove unused debug * backend/rust-compile-resolve-path.cc (HIRCompileBase::query_compile): update usage * hir/rust-ast-lower-expr.cc (ASTLoweringExpr::visit): lower raw ref * hir/tree/rust-hir-expr.cc (BorrowExpr::BorrowExpr): add flag for raw ref * hir/tree/rust-hir-expr.h (class BorrowExpr): add new raw ref field * typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit): add handle for raw ref gcc/testsuite/ChangeLog: * rust/compile/issue-3667.rs: New test. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/ast/rust-expr.h')
0 files changed, 0 insertions, 0 deletions