rust/library/core
Matthias Krüger 38eaf608eb
Rollup merge of #131707 - clarfonthey:constify-core-tests, r=thomcc
Run most `core::num` tests in const context too

This adds some infrastructure for something I was going to use in #131566, but it felt worthwhile enough on its own to merge/discuss separately.

Essentially, right now we tend to rely on UI tests to ensure that things work in const context, rather than just using library tests. This uses a few simple macro tricks to make it *relatively* painless to execute tests in both runtime and compile-time context. And this only applies to the numeric tests, and not anything else.

Recommended to review without whitespace in the diff.

cc `@RalfJung`
2024-10-23 06:51:23 +02:00
..
benches Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
src Rollup merge of #131697 - ShE3py:rt-arg-lifetimes, r=Amanieu 2024-10-21 20:32:01 -07:00
tests Rollup merge of #131707 - clarfonthey:constify-core-tests, r=thomcc 2024-10-23 06:51:23 +02:00
Cargo.toml Port std library to RTEMS 2024-09-03 09:19:29 +02:00