-
Notifications
You must be signed in to change notification settings - Fork 13.3k
librustc_trans: Handle DST structs in trans::_match. #25060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
r? @huonw (rust_highfive has picked a reviewer for you, use r? to override) |
Does this handle trait objects? |
@huonw Yes, it should. Let me update the test case. |
f87a986
to
6a46b86
Compare
let (arg_count, struct_val) = if type_is_sized(bcx.tcx(), left_ty) { | ||
(arg_count, val) | ||
} else { | ||
(arg_count - 1, Load(bcx, expr::get_dataptr(bcx, val))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a comment about the - 1?
r=me with an explanatory comment |
6a46b86
to
715605f
Compare
@bors r=huonw |
📌 Commit 715605f has been approved by |
Great job @luqmana 👍 |
Fixes #23261.
cc @blaenk