diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-04-03 16:22:10 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-04-14 18:23:53 +0200 |
commit | eb5eee065b3e5fe189ea1f51dc88eae7dc4c25d6 (patch) | |
tree | 371d18411e8285dea4b3adbc640f3f63d6d56a5f /gcc/rust/ast/rust-expr.h | |
parent | 9e367223ce5c42e0598ef52637af34f74e14acc1 (diff) | |
download | gcc-eb5eee065b3e5fe189ea1f51dc88eae7dc4c25d6.zip gcc-eb5eee065b3e5fe189ea1f51dc88eae7dc4c25d6.tar.gz gcc-eb5eee065b3e5fe189ea1f51dc88eae7dc4c25d6.tar.bz2 |
gccrs: 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/ast/rust-expr.h')
0 files changed, 0 insertions, 0 deletions