-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add ABI argument to find_mir_or_eval_fn
#80878
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @RalfJung (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
This comment has been minimized.
This comment has been minimized.
Add ABI argument for called function in `find_mir_or_eval_fn` and `call_extra_fn`. Useful for comparing with expected ABI in interpreters. Related to [miri/1631](rust-lang/miri#1631)
@unseddd thanks a lot, this looks great. :) When this lands, Miri will fail to build. Do you think you can prepare a PR that just makes Miri build again, without actually using the new arguments? That way Miri is not blocked on completing this work. |
📌 Commit 06fd212 has been approved by |
Rollup of 6 pull requests Successful merges: - rust-lang#80809 (Use standard formatting for "rust-call" ABI message) - rust-lang#80872 (Fix typo in source-based-code-coverage.md) - rust-lang#80878 (Add ABI argument to `find_mir_or_eval_fn`) - rust-lang#80881 ( Fix intra-doc links to `Self` and `crate` ) - rust-lang#80887 (log-color: Detect TTY based on stderr, not stdout) - rust-lang#80892 (rustdoc: Remove `*` intra-doc alias for `pointer`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Ah, that landed quicker than I expected. |
I was surprised by the speed, too 😄 Started working on the build fix, which is a nice intro, anyway. Will focus on the actual ABI check, and pull down your changes before making a PR. |
True. :) So if you want to take this as an "exercise", go ahead. :D You can find the "solution" at rust-lang/miri#1669. |
Add ABI argument for called function in
find_mir_or_eval_fn
andcall_extra_fn
. Useful for comparing with expected ABI in interpreters.Related to miri/1631
r? @RalfJung