aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-expr.h
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2025-04-03 16:22:10 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2025-04-14 18:23:53 +0200
commiteb5eee065b3e5fe189ea1f51dc88eae7dc4c25d6 (patch)
tree371d18411e8285dea4b3adbc640f3f63d6d56a5f /gcc/rust/ast/rust-expr.h
parent9e367223ce5c42e0598ef52637af34f74e14acc1 (diff)
downloadgcc-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