diff options
author | Philip Herron <herron.philip@googlemail.com> | 2025-02-03 15:25:50 +0000 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-24 13:07:01 +0100 |
commit | e09a03982cfb694509034c560f1c762bce8ce574 (patch) | |
tree | 8bedf0bc012b5dfcd4cc86d875e1ef7518ff9a4a /gcc/testsuite/rust/compile/nr2/exclude | |
parent | ea913186d45967d6a4fa29c5b9a7833eeeee5770 (diff) | |
download | gcc-e09a03982cfb694509034c560f1c762bce8ce574.zip gcc-e09a03982cfb694509034c560f1c762bce8ce574.tar.gz gcc-e09a03982cfb694509034c560f1c762bce8ce574.tar.bz2 |
gccrs: Fix bad generic substitution error on fn/adt types
When passing generics around we try to adjust them because there are cases
where the names are adjusted from other generics this can fail for traits
because of the implicit Self and we just need to continue on without
adjustment.
Fxies Rust-GCC#3382
gcc/rust/ChangeLog:
* typecheck/rust-substitution-mapper.cc (SubstMapperInternal::visit):
continue on for trait item mode.
gcc/testsuite/ChangeLog:
* rust/compile/nr2/exclude: nr2 cant handle this.
* rust/compile/issue-3382.rs: New test.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/testsuite/rust/compile/nr2/exclude')
-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 29d6e21..8229b54 100644 --- a/gcc/testsuite/rust/compile/nr2/exclude +++ b/gcc/testsuite/rust/compile/nr2/exclude @@ -123,4 +123,5 @@ issue-3030.rs traits12.rs try-trait.rs derive-debug1.rs +issue-3382.rs # please don't delete the trailing newline |