aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-gcc.cc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-08-21 12:35:26 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:00:33 +0100
commit6505e466507a6635f9fe1a7ed38d9b6e6cad1737 (patch)
treef0e7951cd7d4bacdc8db106800e3a269825294ef /gcc/rust/rust-gcc.cc
parentc7c9bbaa1a12c47ccd6e6c13cca6161e59f4fa5c (diff)
downloadgcc-6505e466507a6635f9fe1a7ed38d9b6e6cad1737.zip
gcc-6505e466507a6635f9fe1a7ed38d9b6e6cad1737.tar.gz
gcc-6505e466507a6635f9fe1a7ed38d9b6e6cad1737.tar.bz2
gccrs: Fix compilation of types which hold onto dangling infer vars
There is a case where some generic types are holding onto inference variable pointers directly. So this gives the backend a chance to do one final lookup to resolve the type. This now allows us to compile a full test case for iterators but there is still one miscompilation in here which results in a segv on O2 and bad result on -O0. Addresses #1895 gcc/rust/ChangeLog: * backend/rust-compile-type.cc (TyTyResolveCompile::visit): do a final lookup gcc/testsuite/ChangeLog: * rust/compile/iterators1.rs: New test. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/rust-gcc.cc')
0 files changed, 0 insertions, 0 deletions