diff options
author | Philip Herron <herron.philip@googlemail.com> | 2025-02-14 17:32:20 +0000 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-24 13:07:06 +0100 |
commit | 093ae1547cbaf1b818b96d25d1d0235b69255c24 (patch) | |
tree | b25ae255dd4bb1e1e8e787bdb3c842a7990f793f /gcc/rust/hir | |
parent | 3ac3c6f90f272ac9a51031ea45f1d867712a1b23 (diff) | |
download | gcc-093ae1547cbaf1b818b96d25d1d0235b69255c24.zip gcc-093ae1547cbaf1b818b96d25d1d0235b69255c24.tar.gz gcc-093ae1547cbaf1b818b96d25d1d0235b69255c24.tar.bz2 |
gccrs: improve error diagnostic for bad type-resolution in CallExpr
We have the type information for the resolved call lets tell the user about
it in the diagnostic and apply the correct error code.
Fixes Rust-GCC#2035
gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit): improve error diag
gcc/testsuite/ChangeLog:
* rust/compile/generics4.rs: cleanup
* rust/compile/generics6.rs: likewise
* rust/compile/type-bindings1.rs: likewise
* rust/compile/unconstrained_type_param.rs: likewise
* rust/compile/issue-2035.rs: New test.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions