diff options
author | Philip Herron <herron.philip@googlemail.com> | 2025-02-14 17:32:20 +0000 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2025-02-14 18:03:54 +0000 |
commit | f21bf4bd6c415884c3b24c96a381d9cbc6c1cde2 (patch) | |
tree | f80deb20c2d1f9d17d451b1d95dce168c44526bb /gcc/tree-ssa-phiopt.cc | |
parent | 1eb46203ced28c5a3e44f6b63a23d4e91bd4f344 (diff) | |
download | gcc-f21bf4bd6c415884c3b24c96a381d9cbc6c1cde2.zip gcc-f21bf4bd6c415884c3b24c96a381d9cbc6c1cde2.tar.gz gcc-f21bf4bd6c415884c3b24c96a381d9cbc6c1cde2.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/tree-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions