Files
rust/library/core/src
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-28 11:29:02 +02:00
2024-07-26 13:26:33 +01:00
2024-09-25 17:03:20 -07:00
2024-07-29 08:26:52 +10: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-10-02 14:09:19 -07: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-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-07-26 13:26:33 +01:00
2024-09-15 14:27:24 -04:00
2024-08-07 20:43:05 -04:00
2024-09-05 17:24:01 +01:00
2024-09-08 23:08:40 +02:00
2024-09-05 17:24:01 +01:00