about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorgnzlbg <gonzalobg88@gmail.com>2019-03-21 09:15:52 +0100
committergnzlbg <gonzalobg88@gmail.com>2019-03-25 11:44:06 +0100
commitf5d6b3af6966470f7f3beac16ec2bd77b04d8905 (patch)
treee7a50a041fbe0cb83458095ace43a78289f28944 /src/test/ui/thinlto
parent60eca54a7ce931c590801048f54ac0b2d2cd5067 (diff)
downloadrust-f5d6b3af6966470f7f3beac16ec2bd77b04d8905.tar.gz
rust-f5d6b3af6966470f7f3beac16ec2bd77b04d8905.zip
Moves test::black_box to core::hint
This changes removes a cyclic dependency between the "test" and "libtest"
crates, where "libtest" depends on "test" for "black_box", but "test" depends on
"libtest" for everything else.

I've chosen the "hint" module because there seems to be enough consensus in the
discussion of RFC2360 that this module is where such an intrinsic would belong,
but this PR does not implement that RFC! (note: if that RFC ever gets merged,
the API, docs, etc. of this API will need to change).

For backwards compatibility reasons I've chosen to also keep the "test" feature
gate for these instead of adding a new feature gate. If we change the feature
gate, we'll potentially all benchmarks, and while that's something that we could
do, it seems unnecessary to do that now - if RFC2360 gets merged, we'll need to
do that anyways.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions