[WIP] rustc_mir: use FnAbi to get abi::call::Conv in miri.#66807
[WIP] rustc_mir: use FnAbi to get abi::call::Conv in miri.#66807eddyb wants to merge 20 commits intorust-lang:masterfrom
Conversation
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
|
☔ The latest upstream changes (presumably #66950) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Ping from triage |
|
I have no plans to finish this right now, if anything changes I'll reopen later. |
Based on #65947.
I wanted to include this (i.e. only the last commit) in #65947, but I forgot that
rustc_target::abi::callrequires<Cx as LayoutOf>::TyLayout == TyLayout<Ty>, which works well enough for codegen (which ICEs on layout errors, since there's nothing else to do), but not miri.I don't think this can land without a cleanup of the
rustc_target::abi/rustc::ty::layoutcode to bake inResult(instead of doing all theMaybeResultdances), and either a lot of.unwrap()in codegen or maybe adding agetmethod (via extension trait?) toResult<T, !>.r? @oli-obk cc @RalfJung