aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/expand/rust-macro-builtins.cc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2025-02-03 15:25:50 +0000
committerPhilip Herron <philip.herron@embecosm.com>2025-02-03 20:35:58 +0000
commit68e24e2562e267f7ca42b6c7fc8b536b4a2459b3 (patch)
tree175431b1701cf631ad57e2a807fc904f762a1a08 /gcc/rust/expand/rust-macro-builtins.cc
parent842c1cf95d6e731e72449b36539d85624fa77161 (diff)
downloadgcc-68e24e2562e267f7ca42b6c7fc8b536b4a2459b3.zip
gcc-68e24e2562e267f7ca42b6c7fc8b536b4a2459b3.tar.gz
gcc-68e24e2562e267f7ca42b6c7fc8b536b4a2459b3.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/rust/expand/rust-macro-builtins.cc')
0 files changed, 0 insertions, 0 deletions