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
I recently made a change that reports errors for unconstrained type variables rather than resolving them to bottom (the latter was causing confusion). This seems to have unearthed a problem with cross-crate method calls on classes where we end up with unconstrained type variables. Specifically: the class type variables seem to be unresolved. I believe the problem has to do with the encoding, which encodes both the class tps and method tps together rather than just the method tps. But if I just revert this line, it causes failures in kind---my belief there is that there is some compensatory logic. But I didn't spend enough time to be sure, I could just be misunderstanding how it works. Anyway, for now I have xfailed src/test/run-pass/class-poly-methods-cross-crate.rs
The text was updated successfully, but these errors were encountered:
handle Box with allocators
This is the Miri side of rust-lang#98847.
Thanks `@DrMeepster` for doing most of the work of getting this test case to pass in Miri. :)
tshepang
pushed a commit
to tshepang/rust
that referenced
this issue
May 15, 2025
I recently made a change that reports errors for unconstrained type variables rather than resolving them to bottom (the latter was causing confusion). This seems to have unearthed a problem with cross-crate method calls on classes where we end up with unconstrained type variables. Specifically: the class type variables seem to be unresolved. I believe the problem has to do with the encoding, which encodes both the class tps and method tps together rather than just the method tps. But if I just revert this line, it causes failures in kind---my belief there is that there is some compensatory logic. But I didn't spend enough time to be sure, I could just be misunderstanding how it works. Anyway, for now I have xfailed
src/test/run-pass/class-poly-methods-cross-crate.rs
The text was updated successfully, but these errors were encountered: