about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2018-04-19 15:26:16 +0900
committerMike Hommey <mh@glandium.org>2018-04-20 09:43:52 +0900
commit6614fa0981f5d5555f7cd2f11e258fe989e98032 (patch)
tree9b48866d5f3ff114b8944ecf89d46e2a16411c93 /src/test/incremental/thinlto
parentdfa611146c7acd692f760619d25bfabf7261eaf5 (diff)
downloadrust-6614fa0981f5d5555f7cd2f11e258fe989e98032.tar.gz
rust-6614fa0981f5d5555f7cd2f11e258fe989e98032.zip
Support an alternative form for box_free
box_free currently takes a pointer. With the prospect of the Box type
definition changing in the future to include an allocator, box_free will
also need to be aware of this. In order to prepare for that future, we
allow box_free to take a form where its argument are the fields of the
Box.

e.g. if Box is defined as `Box(A, B, C)`, then box_free signature
becomes `box_free(a: A, b: B, c: C)`.

We however still allow the current form (taking a pointer), so that the
same compiler can handle both forms, which helps with bootstrap.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions