]> gcc.gnu.org Git - gcc.git/commit
gccrs: remove old generics hack to reuse generic symbols from previous seg
authorPhilip Herron <herron.philip@googlemail.com>
Sat, 3 Feb 2024 11:34:30 +0000 (11:34 +0000)
committerPhilip Herron <philip.herron@embecosm.com>
Sun, 4 Feb 2024 00:21:21 +0000 (00:21 +0000)
commitce4e7944cf2c0ae705e86357729358364bc0fd21
treefd3919cb757df6eb71b0c53823d5fe51f3db57c6
parentd6c97f6d03845b018f855bc310493269f0b50eb5
gccrs: remove old generics hack to reuse generic symbols from previous seg

This patch introduces one regression because generics are getting better
understood over time. The code here used to apply generics with the same
symbol from previous segments which was a bit of a hack with out limited
inference variable support. The regression looks like it will be related
to another issue which needs to default integer inference variables much
more aggresivly to default integer.

Fixes #2723

gcc/rust/ChangeLog:

* typecheck/rust-hir-type-check-path.cc (TypeCheckExpr::resolve_segments): remove hack

gcc/testsuite/ChangeLog:

* rust/compile/issue-1773.rs: Moved to...
* rust/compile/issue-1773.rs.bak: ...here.
* rust/compile/issue-2723-1.rs: New test.
* rust/compile/issue-2723-2.rs: New test.
gcc/rust/typecheck/rust-hir-type-check-path.cc
gcc/testsuite/rust/compile/issue-1773.rs.bak [moved from gcc/testsuite/rust/compile/issue-1773.rs with 100% similarity]
gcc/testsuite/rust/compile/issue-2723-1.rs [new file with mode: 0644]
gcc/testsuite/rust/compile/issue-2723-2.rs [new file with mode: 0644]
This page took 0.058612 seconds and 5 git commands to generate.