Matthias Krüger
260e07b0cb
Rollup merge of #115626 - clarfonthey:unchecked-math, r=thomcc
...
Clean up unchecked_math, separate out unchecked_shifts
Tracking issue: #85122
Changes:
1. Remove `const_inherent_unchecked_arith` flag and make const-stability flags the same as the method feature flags. Given the number of other unsafe const fns already stabilised, it makes sense to just stabilise these in const context when they're stabilised.
2. Move `unchecked_shl` and `unchecked_shr` into a separate `unchecked_shifts` flag, since the semantics for them are unclear and they'll likely be stabilised separately as a result.
3. Add an `unchecked_neg` method exclusively to signed integers, under the `unchecked_neg` flag. This is because it's a new API and probably needs some time to marinate before it's stabilised, and while it *would* make sense to have a similar version for unsigned integers since `checked_neg` also exists for those there is absolutely no case where that would be a good idea, IMQHO.
The longer-term goal here is to prepare the `unchecked_math` methods for an FCP and stabilisation since they've existed for a while, their semantics are clear, and people seem in favour of stabilising them.
2023-11-01 11:29:41 +01:00
..
2023-10-24 15:30:17 +00:00
2023-10-24 15:30:17 +00:00
2023-10-19 15:51:52 +00:00
2023-10-27 18:51:43 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-11-01 11:29:41 +01:00
2023-10-25 23:15:18 +02:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-31 11:44:23 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-06-23 18:36:25 +01:00
2023-10-19 15:51:53 +00:00
2023-08-24 14:26:26 +02:00
2023-10-19 15:51:53 +00:00
2023-08-24 14:26:26 +02:00
2023-10-19 15:51:53 +00:00
2023-10-19 15:51:53 +00:00
2023-10-19 15:51:53 +00:00
2023-10-19 15:51:53 +00:00
2023-10-16 16:29:35 +00:00
2023-10-19 15:51:52 +00:00
2023-10-16 19:15:28 +00:00
2023-10-16 19:15:28 +00:00
2023-10-19 15:51:52 +00:00
2023-10-16 19:15:28 +00:00
2023-10-16 19:15:28 +00:00
2023-10-19 15:51:52 +00:00
2023-10-16 19:15:28 +00:00
2023-10-16 19:15:28 +00:00
2023-10-19 15:51:52 +00:00
2023-10-25 06:46:45 +00:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-08-30 17:24:10 +08:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-10-16 16:29:35 +00:00
2023-10-16 16:29:35 +00:00
2023-06-15 15:19:11 -04:00
2023-10-16 16:29:35 +00:00
2023-10-16 16:29:35 +00:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-10-20 21:14:01 +00:00
2023-10-20 21:14:01 +00:00
2023-10-20 21:14:01 +00:00
2023-10-20 21:14:01 +00:00
2023-10-20 21:14:01 +00:00
2023-10-20 21:14:01 +00:00
2023-10-20 21:14:01 +00:00
2023-10-20 21:14:01 +00:00
2023-06-15 15:19:11 -04:00
2023-06-23 18:36:25 +01:00
2023-10-19 15:51:52 +00:00
2023-10-24 15:30:17 +00:00
2023-10-24 15:30:17 +00:00
2023-10-19 15:51:52 +00:00
2023-08-24 14:26:26 +02:00
2023-08-24 14:26:26 +02:00
2023-10-19 15:51:52 +00:00
2023-10-24 15:30:17 +00:00
2023-10-24 15:30:17 +00:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-09-19 05:42:23 +00:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-10-16 16:29:35 +00:00
2023-10-16 16:29:35 +00:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-10-16 16:29:35 +00:00
2023-10-16 16:29:35 +00:00
2023-10-24 15:30:17 +00:00
2023-10-19 15:51:52 +00:00
2023-06-28 00:41:37 +00:00
2023-10-19 15:51:52 +00:00
2023-10-17 19:53:51 -04:00
2023-10-17 19:53:51 -04:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-25 06:46:48 +00:00
2023-10-25 06:46:48 +00:00
2023-10-25 06:46:45 +00:00
2023-10-25 06:46:45 +00:00
2023-10-25 06:46:47 +00:00
2023-10-25 06:46:47 +00:00
2023-10-25 06:46:47 +00:00
2023-10-25 06:46:47 +00:00
2023-10-25 06:46:48 +00:00
2023-10-25 06:46:48 +00:00
2023-10-25 06:46:47 +00:00
2023-10-25 06:46:47 +00:00
2023-10-25 06:46:48 +00:00
2023-10-25 06:46:48 +00:00
2023-10-25 06:47:04 +00:00
2023-10-25 06:47:04 +00:00
2023-10-25 17:59:30 +00:00
2023-10-25 17:59:30 +00:00
2023-10-25 06:46:45 +00:00
2023-10-25 06:46:45 +00:00
2023-10-25 06:46:47 +00:00
2023-10-25 06:46:47 +00:00
2023-10-25 06:46:48 +00:00
2023-10-25 06:46:48 +00:00
2023-10-25 06:46:47 +00:00
2023-10-25 06:46:47 +00:00
2023-10-25 17:59:30 +00:00
2023-10-25 06:46:48 +00:00
2023-10-25 06:46:48 +00:00
2023-10-25 06:46:48 +00:00
2023-10-25 06:46:48 +00:00
2023-10-25 06:46:47 +00:00
2023-10-25 06:46:47 +00:00
2023-06-15 15:19:11 -04:00
2023-08-30 17:24:10 +08:00
2023-06-15 15:19:11 -04:00
2023-08-30 17:24:10 +08:00
2023-08-30 17:24:10 +08:00
2023-08-30 17:24:10 +08:00
2023-08-30 17:24:10 +08:00
2023-08-30 17:24:10 +08:00
2023-10-19 15:51:52 +00:00
2023-09-19 05:42:23 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-08-24 14:26:26 +02:00
2023-08-24 14:26:26 +02:00
2023-10-19 15:51:52 +00:00
2023-08-24 14:26:26 +02:00
2023-08-24 14:26:26 +02:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-24 15:30:17 +00:00
2023-10-24 15:30:17 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-24 15:30:17 +00:00
2023-10-24 15:30:17 +00:00
2023-10-24 15:30:17 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-25 06:46:45 +00:00
2023-10-25 06:46:45 +00:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-08-24 14:26:26 +02:00
2023-08-24 14:26:26 +02:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-10-24 15:30:17 +00:00
2023-10-24 15:30:17 +00:00
2023-10-19 15:51:52 +00:00
2023-10-06 15:46:11 +00:00
2023-10-06 15:46:11 +00:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-06-23 18:36:25 +01:00
2023-10-19 15:51:52 +00:00
2023-10-21 06:58:38 +00:00
2023-10-21 06:58:38 +00:00
2023-10-21 07:08:53 +00:00
2023-10-21 07:08:53 +00:00
2023-10-21 07:08:53 +00:00
2023-10-21 07:08:53 +00:00
2023-10-21 06:58:38 +00:00
2023-10-21 06:58:38 +00:00
2023-10-21 06:58:38 +00:00
2023-10-21 06:58:38 +00:00
2023-10-21 06:58:38 +00:00
2023-10-21 06:58:38 +00:00
2023-10-21 06:58:38 +00:00
2023-10-21 06:58:38 +00:00
2023-10-21 06:58:38 +00:00
2023-10-21 06:58:38 +00:00
2023-10-21 07:01:24 +00:00
2023-10-21 07:01:24 +00:00
2023-10-21 07:08:53 +00:00
2023-10-21 06:58:38 +00:00
2023-10-21 06:58:38 +00:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-08-30 17:24:10 +08:00
2023-08-30 17:24:10 +08:00
2023-08-30 17:24:10 +08:00
2023-08-30 17:24:10 +08:00
2023-07-07 18:17:16 +02:00
2023-07-07 18:17:16 +02:00
2023-07-07 18:17:16 +02:00
2023-07-07 18:17:16 +02:00
2023-07-07 18:17:16 +02:00
2023-07-07 18:17:16 +02:00
2023-07-07 18:17:16 +02:00
2023-07-07 18:17:16 +02:00
2023-10-19 15:51:54 +00:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-09-04 18:27:34 +02:00
2023-09-04 18:27:34 +02:00
2023-10-19 15:51:54 +00:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-10-24 15:30:17 +00:00
2023-10-24 15:30:17 +00:00
2023-10-24 15:30:17 +00:00
2023-10-24 15:30:17 +00:00
2023-10-24 15:30:17 +00:00
2023-10-24 15:30:17 +00:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-19 01:47:03 -07:00
2023-06-19 01:47:03 -07:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-08-30 17:24:10 +08:00
2023-08-30 17:24:10 +08:00
2023-10-19 15:51:54 +00:00
2023-10-24 15:30:17 +00:00
2023-10-24 15:30:17 +00:00
2023-10-19 15:51:52 +00:00
2023-10-24 15:30:17 +00:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-08-30 17:24:10 +08:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-08-24 14:26:26 +02:00
2023-08-24 14:26:26 +02:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-23 18:36:25 +01:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-08-24 14:26:26 +02:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:54 +00:00
2023-10-08 16:05:26 +00:00
2023-06-23 18:36:25 +01:00
2023-06-23 18:36:25 +01:00
2023-06-23 18:36:25 +01:00
2023-08-17 17:02:04 +00:00
2023-06-15 15:19:11 -04:00
2023-08-17 17:02:04 +00:00
2023-08-17 17:02:04 +00:00
2023-08-17 17:02:04 +00:00
2023-08-17 17:02:04 +00:00
2023-10-19 15:51:53 +00:00
2023-06-23 18:36:25 +01:00
2023-10-24 15:30:17 +00:00
2023-10-24 15:30:17 +00:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-06-23 18:36:25 +01:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-23 18:36:25 +01:00
2023-06-15 15:19:11 -04:00
2023-06-23 18:36:25 +01:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-08-30 17:24:10 +08:00
2023-08-30 17:24:10 +08:00
2023-06-15 15:19:11 -04:00
2023-06-23 18:36:25 +01:00
2023-09-21 22:20:58 +02:00
2023-09-21 22:20:58 +02:00
2023-10-02 23:39:45 +03:00
2023-10-02 23:39:45 +03:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-31 11:44:23 +00:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-10-25 06:46:45 +00:00
2023-10-25 06:46:45 +00:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-06-23 18:36:25 +01:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-06-23 18:36:25 +01:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-07-07 18:17:16 +02:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-06-23 18:36:25 +01:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-08-24 14:26:26 +02:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-10-31 11:44:23 +00:00
2023-10-31 11:44:23 +00:00
2023-10-31 11:44:23 +00:00
2023-10-31 11:44:23 +00:00
2023-06-15 15:19:11 -04:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-10-31 11:44:23 +00:00
2023-10-19 15:51:52 +00:00
2023-10-31 11:44:23 +00:00
2023-10-31 11:44:23 +00:00
2023-10-31 11:44:23 +00:00
2023-10-31 11:44:23 +00:00
2023-10-31 11:44:23 +00:00
2023-10-31 11:44:23 +00:00
2023-10-31 11:44:23 +00:00
2023-10-31 11:44:23 +00:00
2023-10-19 15:51:52 +00:00
2023-08-24 14:26:26 +02:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-06-15 15:19:11 -04:00
2023-10-19 15:51:52 +00:00
2023-10-21 07:08:48 +00:00
2023-10-21 07:08:48 +00:00