rust/src/libtest
gnzlbg f5d6b3af69 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.
2019-03-25 11:44:06 +01:00
..
Cargo.toml Use libtest from crates.io 2019-03-19 13:58:47 +01:00
lib.rs Moves test::black_box to core::hint 2019-03-25 11:44:06 +01:00
README.md Directly reference the roadmap upstream 2019-03-19 13:58:48 +01:00

WIP - stable libtest

The migration of libtest to stable Rust is currently in progress.

You can find libtest at: https://github.com/rust-lang/libtest . If you need to make a change:

  • perform the change there,
  • do a new crates.io release, and
  • send a PR to rust-lang/rust bumping the libtest version.

The roadmap of the migration is being tracked here: https://github.com/rust-lang/libtest/issues/2