about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-11-23 20:02:45 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-11-23 20:17:19 +0000
commitb7bc8d5cb7685bd8e35d7b1c9d3011b043abf775 (patch)
tree9eec065d401fd5349616d750fc0a3514f4017280 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parent237339fda17395d3e35f3028a0e0aa8278c3a4bf (diff)
downloadrust-b7bc8d5cb7685bd8e35d7b1c9d3011b043abf775.tar.gz
rust-b7bc8d5cb7685bd8e35d7b1c9d3011b043abf775.zip
Fix fn_sig_for_fn_abi and the coroutine transform for generators
There were three issues previously:
* The self argument was pinned, despite Iterator::next taking an
  unpinned mutable reference.
* A resume argument was passed, despite Iterator::next not having one.
* The return value was CoroutineState<Item, ()> rather than Option<Item>

While these things just so happened to work with the LLVM backend,
cg_clif does much stricter checks when trying to assign a value to a
place. In addition it can't handle the mismatch between the amount of
arguments specified by the FnAbi and the FnSig.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions