Open dkm opened 1 year ago
Removing the dummy mapping doesn't break any test, but will let @philberty decide if this is a safe fix or not.
Ohh good find... do you have a test case for this one?
Every trait is meant to have an implicit Self type parameter so we should really at bare minimum assert that:
get_substs is not empty and see if that passes the testsuite.
In https://github.com/Rust-GCC/gccrs/blob/b75357f4a1835dcd288df67402340b4cb6b96c12/gcc/rust/typecheck/rust-tyty-bounds.cc#L317
.front()
is called on an empty list. Enabling libstdc++ assertion gives: