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
..
2024-07-21 12:05:02 -05:00
2024-02-07 16:46:28 +01:00
2024-07-29 08:26:52 +10:00
2024-10-09 17:17:50 -04:00
2023-04-26 02:10:22 -04:00
2024-10-15 20:30:23 -07:00
2023-04-16 11:38:52 +00:00
2024-01-11 15:04:48 +03:00
2023-12-10 10:56:22 +08:00
2024-07-29 20:33:11 +03:00
2024-07-29 08:26:52 +10:00
2023-04-16 11:38:52 +00:00
2024-05-01 22:19:11 -04:00
2024-10-17 09:33:39 -04:00
2024-09-13 15:18:30 -03:00
2023-07-12 21:38:55 -04:00
2024-09-09 16:17:34 +02:00
2024-06-19 21:44:47 +01:00
2024-10-16 21:24:38 +01:00
2024-07-29 08:26:52 +10:00
2023-11-26 08:50:39 -05:00
2024-04-24 15:27:47 -07:00
2022-12-30 14:00:42 +01:00
2023-01-02 10:33:23 -08:00
2024-01-24 14:24:57 +01:00