diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-04-03 16:22:10 +0200 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2025-04-14 07:32:30 +0000 |
commit | b9fdd60c28472f8163f7952bee2473e1d8e6981e (patch) | |
tree | 72849022a30aba6fa14dd101771da839807e0bb1 /gcc/rust/hir | |
parent | 7ef77dad7cdd8d4b2b558a190b03a4e39557feab (diff) | |
download | gcc-b9fdd60c28472f8163f7952bee2473e1d8e6981e.zip gcc-b9fdd60c28472f8163f7952bee2473e1d8e6981e.tar.gz gcc-b9fdd60c28472f8163f7952bee2473e1d8e6981e.tar.bz2 |
typecheck: Properly select methods when dealing with specialization
gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check-expr.cc (is_default_fn): New.
(emit_ambiguous_resolution_error): New.
(handle_multiple_candidates): Properly handle multiple candidates in
the case of specialization.
(TypeCheckExpr::visit): Call `handle_multiple_candidates`.
gcc/testsuite/ChangeLog:
* rust/execute/torture/min_specialization2.rs: New test.
* rust/execute/torture/min_specialization3.rs: New test.
Diffstat (limited to 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions