aboutsummaryrefslogtreecommitdiff
path: root/gcc/function-tests.cc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-01-27 15:38:58 +0000
committerPhilip Herron <herron.philip@googlemail.com>2023-02-05 00:10:48 +0000
commitedcf5b63bf60c1aec18df315fffbcd3d59d23119 (patch)
tree18d4727bded65c9fecf5ee1c783c7730be6c17cb /gcc/function-tests.cc
parentb5719d74b349bf96735851844158ea9b5d65db85 (diff)
downloadgcc-edcf5b63bf60c1aec18df315fffbcd3d59d23119.zip
gcc-edcf5b63bf60c1aec18df315fffbcd3d59d23119.tar.gz
gcc-edcf5b63bf60c1aec18df315fffbcd3d59d23119.tar.bz2
gccrs: Remove monomorphization hack to setup possible associated types
During CallExpr argument type checking we may be calling a default implementation of a trait function this will require any possible associated types to be resolved and setup. This monomoprhization call does this but it will premtivly do extra unification of types which will throw off type checking later on. This fix is required for my work into type bounds checking. Fixes #1773 Signed-off-by: Philip Herron <herron.philip@googlemail.com> gcc/rust/ChangeLog: * typecheck/rust-hir-trait-reference.h: change interface to return self * typecheck/rust-hir-trait-resolve.cc: likewise * typecheck/rust-hir-type-check-path.cc (TypeCheckExpr::resolve_segments): likewise * typecheck/rust-tyty-call.cc (TypeCheckCallExpr::visit): remove monomorphization hack gcc/testsuite/ChangeLog: * rust/compile/issue-1773.rs: New test.
Diffstat (limited to 'gcc/function-tests.cc')
0 files changed, 0 insertions, 0 deletions