]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Stop autoderef of raw pointer types
authorPhilip Herron <herron.philip@googlemail.com>
Sun, 25 Jun 2023 20:36:32 +0000 (21:36 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:46:30 +0000 (18:46 +0100)
commitb3b3de1082eeeee73fec1d27ad732b8369ee1d27
tree89dfcc761d3bcd9d399d3a882bce57adecaa198c
parent5cfff8be03aac6e7d95e6dd54c69b5bd0cf824d8
gccrs: Stop autoderef of raw pointer types

It is unsafe to deref raw pointers during autoderef this adds a check to
stop autoderef early when we are about to try and deref pointers.

Fixes #2015

gcc/rust/ChangeLog:

* typecheck/rust-autoderef.cc (AutoderefCycle::cycle): add check for pointers

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/typecheck/rust-autoderef.cc