diff options
author | Philip Herron <herron.philip@googlemail.com> | 2024-11-01 16:18:28 +0000 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2024-11-01 17:03:01 +0000 |
commit | 4686e63c4e840417f2522fabb5611701eee92eca (patch) | |
tree | b92e6191106d0d8f220624fe0169c5211d76c375 /gcc/rust/backend/rust-compile-context.cc | |
parent | 94957c0502bdee5567224f2fe556000b94cb4192 (diff) | |
download | gcc-4686e63c4e840417f2522fabb5611701eee92eca.zip gcc-4686e63c4e840417f2522fabb5611701eee92eca.tar.gz gcc-4686e63c4e840417f2522fabb5611701eee92eca.tar.bz2 |
gccrs: fix bad type inferencing on path's
This catch to inject inference variables into generic paths was a
catch all 'hack' that we needed before we handled generics correctly
as we do now.
Fixes #3009
gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check-path.cc (TypeCheckExpr::resolve_segments): remove hack
gcc/testsuite/ChangeLog:
* rust/compile/nr2/exclude: nr2 cant handle this
* rust/compile/issue-3009.rs: New test.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-context.cc')
0 files changed, 0 insertions, 0 deletions