You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the issue here is that we're trying to get the Rhs generic type parameter from PartialOrd and PartialEq to check if the generic args are the same, and incorrectly assuming that all generic parameters defined on the trait will be specified in the trait bound, but the Rhs is not explicitly specified here. It should probably use the default type if there is no type at that index.
I have a fix for this locally that fixes this ICE as well as another somewhat similar one. I've found a few other issues with this lint (mostly just suggestion-causes-error ones), so I think it's better if we move this into nursery for now... I can do that in the same PR
Summary
since rust-lang/rust#115183 from rustc
./tests/ui/impl-trait/issues/issue-49376.rs
Version
Error output
Backtrace
The text was updated successfully, but these errors were encountered: