diff options
author | Philip Herron <herron.philip@googlemail.com> | 2025-02-12 17:10:31 +0000 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2025-02-12 19:35:14 +0000 |
commit | c005754701addc8a08fd1ed8381826ccbd92e83e (patch) | |
tree | 6b0602f52f68d8f0885b36fefd3a3fa96b9419b7 /gcc/builtins.cc | |
parent | eee682ce813761ada573c5a37e91fd57e7e6d3b0 (diff) | |
download | gcc-c005754701addc8a08fd1ed8381826ccbd92e83e.zip gcc-c005754701addc8a08fd1ed8381826ccbd92e83e.tar.gz gcc-c005754701addc8a08fd1ed8381826ccbd92e83e.tar.bz2 |
gccrs: add diagnostic for E0229 no associated type arguments allowed here
It seems bounds in qualified paths are not allowed to specify associated
type bindings because its going to be associated with the impl block
anyway.
Fixes Rust-GCC#2369
gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check-base.h: add flag
* typecheck/rust-hir-type-check-type.cc (TypeCheckType::visit): likewise
* typecheck/rust-tyty-bounds.cc: new diagnostic
gcc/testsuite/ChangeLog:
* rust/compile/issue-2369.rs: New test.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/builtins.cc')
0 files changed, 0 insertions, 0 deletions