diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-06-30 22:08:10 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-06-30 22:02:15 +0000 |
commit | cfc51d46fcdb70bde84f030557c96866f3b18e23 (patch) | |
tree | f62306b5b14b97c3a7a419686d38f77695c3f244 /gcc/rust/resolve/rust-ast-resolve-expr.cc | |
parent | 251348f3c8bc218360877a3bb9f16d9d5c7a685f (diff) | |
download | gcc-cfc51d46fcdb70bde84f030557c96866f3b18e23.zip gcc-cfc51d46fcdb70bde84f030557c96866f3b18e23.tar.gz gcc-cfc51d46fcdb70bde84f030557c96866f3b18e23.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/resolve/rust-ast-resolve-expr.cc')
0 files changed, 0 insertions, 0 deletions