Matthias Krüger
388c10b2ac
Rollup merge of #131281 - RalfJung:const-cell, r=Amanieu
...
make Cell unstably const
Now that we can do interior mutability in `const`, most of the Cell API can be `const fn`. :) The main exception is `set`, because it drops the old value. So from const context one has to use `replace`, which delegates the responsibility for dropping to the caller.
Tracking issue: https://github.com/rust-lang/rust/issues/131283
`as_array_of_cells` is itself still unstable to I added the const-ness to the feature gate for that function and not to `const_cell`, Cc #88248 .
r? libs-api
2024-10-05 19:07:54 +02:00
..
2024-09-29 20:17:35 +02:00
2024-09-22 19:11:29 -04:00
2024-08-21 16:26:35 -04:00
2024-09-22 19:11:29 -04:00
2024-09-28 11:29:02 +02:00
2024-10-01 21:09:19 +02:00
2024-07-29 20:44:43 +03:00
2024-07-26 13:26:33 +01:00
2024-09-25 17:03:20 -07:00
2024-10-01 12:01:55 +02:00
2024-09-22 19:11:29 -04:00
2024-07-29 08:26:52 +10:00
2024-09-14 14:43:24 +02:00
2024-07-26 13:26:33 +01:00
2024-09-25 17:03:20 -07:00
2024-09-13 15:00:33 -03:00
2024-09-27 00:43:30 +02:00
2024-09-01 03:58:03 +02:00
2024-10-05 10:13:18 +02:00
2024-09-25 19:00:17 -07:00
2024-09-29 13:01:41 +02:00
2024-07-17 08:02:46 +10:00
2024-10-04 19:19:23 -07:00
2024-09-22 19:11:29 -04:00
2024-10-05 09:52:13 +02:00
2024-10-02 14:09:19 -07:00
2024-09-29 20:17:36 +02:00
2024-09-22 19:11:29 -04:00
2024-09-12 19:03:41 +02:00
2024-07-29 08:26:52 +10:00
2024-09-26 09:54:00 +02:00
2024-07-29 08:26:52 +10:00
2024-07-29 08:26:52 +10:00
2024-09-19 13:13:42 +01:00
2024-05-09 23:25:31 +00:00
2024-10-05 11:13:27 +02:00
2024-09-05 17:24:01 +01:00
2024-09-29 09:32:03 +02:00
2024-09-05 17:24:01 +01:00
2024-06-11 15:47:00 +02:00
2024-08-25 20:04:26 -04:00
2024-06-21 09:23:24 +00:00
2024-09-01 14:22:50 -07:00
2024-07-26 13:26:33 +01:00
2024-10-01 21:09:19 +02:00
2024-04-03 20:27:20 +02:00
2024-10-05 13:15:58 +02:00
2024-09-07 20:37:30 +00:00
2024-10-02 04:31:15 +00:00
2024-09-15 14:27:24 -04:00
2024-09-18 11:57:31 +00:00
2024-08-07 20:43:05 -04:00
2024-09-05 17:24:01 +01:00
2024-09-21 09:17:31 +02:00
2024-09-22 19:11:29 -04:00
2024-09-23 10:36:16 +02:00
2024-09-22 19:11:29 -04:00
2024-09-22 08:40:25 +02:00
2024-09-08 23:08:40 +02:00
2024-09-05 17:24:01 +01:00
2024-08-21 17:35:54 -04:00
2024-03-25 13:12:06 -07:00