diff options
author | Philip Herron <herron.philip@googlemail.com> | 2025-02-04 17:15:15 +0000 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-24 13:07:04 +0100 |
commit | a34f4d5a817f777696a0b0ddf1328275c8a81538 (patch) | |
tree | 09d4b275974fcf25728458a18de3dcc28244368a /gcc/testsuite/rust/compile/nr2 | |
parent | 0c14d95298548b7bb0c504f28cf5c18111285db8 (diff) | |
download | gcc-a34f4d5a817f777696a0b0ddf1328275c8a81538.zip gcc-a34f4d5a817f777696a0b0ddf1328275c8a81538.tar.gz gcc-a34f4d5a817f777696a0b0ddf1328275c8a81538.tar.bz2 |
gccrs: remove bad type checking diagnostic
This was a bad diagnostic added when I was working on slices and iterators
also the name of the function is also bad. This is all about setting up
associated types based on the current context of the bounds assocated with
the associated trait bounds on this function.
The tell tale is that this didnt have an associated rust error code so
this is most definetly not the correct error diagnostic.
Fixes Rust-GCC#3403
gcc/rust/ChangeLog:
* typecheck/rust-tyty-subst.cc (SubstitutionRef::monomorphize): remove diagnostic
gcc/testsuite/ChangeLog:
* rust/compile/nr2/exclude: nr2 cant handle this
* rust/compile/issue-3403.rs: New test.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/testsuite/rust/compile/nr2')
-rw-r--r-- | gcc/testsuite/rust/compile/nr2/exclude | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/nr2/exclude b/gcc/testsuite/rust/compile/nr2/exclude index 5124194..6f6280d 100644 --- a/gcc/testsuite/rust/compile/nr2/exclude +++ b/gcc/testsuite/rust/compile/nr2/exclude @@ -123,4 +123,5 @@ derive-default1.rs issue-3402-1.rs for-loop1.rs for-loop2.rs +issue-3403.rs # please don't delete the trailing newline |