diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-06-30 22:08:10 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:49:30 +0100 |
commit | 90f6b7b56b027c229b519a17ed4bda180b54883d (patch) | |
tree | 5edc5d116d2409dfd5431aaf1c626d5f55560ed4 /gcc/rust/hir/tree/rust-hir.h | |
parent | 3913845305f7a20cb3d0b372492716687d823b98 (diff) | |
download | gcc-90f6b7b56b027c229b519a17ed4bda180b54883d.zip gcc-90f6b7b56b027c229b519a17ed4bda180b54883d.tar.gz gcc-90f6b7b56b027c229b519a17ed4bda180b54883d.tar.bz2 |
gccrs: fix ICE with inserting autoderef mappings
We were using the call-expr id for the autoderef mappings but this doesn't
work when the call expression itself is part of a coercion-site so this
changes the code to use the call-expression function path expression for
the id instead which will not be duplicated again.
Addresses #2105
gcc/rust/ChangeLog:
* backend/rust-compile-expr.cc (CompileExpr::generate_possible_fn_trait_call): use fnexpr
* typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::resolve_fn_trait_call): likewise
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/hir/tree/rust-hir.h')
0 files changed, 0 insertions, 0 deletions