diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-05-23 17:55:32 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-05-26 16:28:04 +0000 |
commit | d47f52a583133e7ea1b703bdc1e0461aa650a414 (patch) | |
tree | 2f71627c5274a15229e55d69eca9c992b4a98fb8 /gcc/gimple-range-edge.cc | |
parent | e656f08b6f7794c0c04a808fec50ea9a079577c7 (diff) | |
download | gcc-d47f52a583133e7ea1b703bdc1e0461aa650a414.zip gcc-d47f52a583133e7ea1b703bdc1e0461aa650a414.tar.gz gcc-d47f52a583133e7ea1b703bdc1e0461aa650a414.tar.bz2 |
gccrs: support deref cycles to resolve to trait items
Fixes #2190
gcc/rust/ChangeLog:
* backend/rust-compile-expr.cc (HIRCompileBase::resolve_deref_adjustment):
reuse op overload code
* typecheck/rust-autoderef.cc (Adjuster::try_deref_type): update
(Adjuster::try_raw_deref_type): likewise
* typecheck/rust-autoderef.h: likewise
* typecheck/rust-hir-dot-operator.cc (MethodResolver::select):
improve debug loging
gcc/testsuite/ChangeLog:
* rust/compile/issue-2190-1.rs: New test.
* rust/compile/issue-2190-2.rs: New test.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/gimple-range-edge.cc')
0 files changed, 0 insertions, 0 deletions