summaryrefslogtreecommitdiff
path: root/spec/ruby/core
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2022-07-28 11:08:30 -0400
committerTakashi Kokubun <takashikkbn@gmail.com>2022-08-29 08:47:05 -0700
commit869b0ba6e00168d739830af766c3abb0dec01f12 (patch)
treeb3aa712b59913cec94aacde99cead910075979d6 /spec/ruby/core
parent6ab71a8598c6eece25975ca262eb880462e47b06 (diff)
Minor cleanups (https://github.com/Shopify/ruby/pull/345)
* Move allocation into Assembler::pos_marker We wanted to do this to begin with but didn't because we were confused about the lifetime parameter. It's actually talking about the lifetime of the references that the closure captures. Since all of our usages capture no references (they use `move`), it's fine to put a `+ 'static` here. * Use optional token syntax for calling convention macro * Explicitly request C ABI on ARM It looks like the Rust calling convention for functions are the same as the C ABI for now and it's unlikely to change, but it's easy for us to be explicit here. I also tried saying `extern "aapcs"` but that unfortunately doesn't work.
Diffstat (limited to 'spec/ruby/core')
0 files changed, 0 insertions, 0 deletions