diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-10-05 19:07:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-05 19:07:54 +0200 |
| commit | 388c10b2ac2bc20ac193bc8a60ae444fe638e40c (patch) | |
| tree | 8576364c25f591a7a3f58ce7623a889425627336 /src/librustdoc/scrape_examples.rs | |
| parent | 2e80beb36cbce2cc05375af59d8e2cfedd8683d2 (diff) | |
| parent | 98aa3d96e2d93eefa50374f1ea6057377bcec17b (diff) | |
| download | rust-388c10b2ac2bc20ac193bc8a60ae444fe638e40c.tar.gz rust-388c10b2ac2bc20ac193bc8a60ae444fe638e40c.zip | |
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
Diffstat (limited to 'src/librustdoc/scrape_examples.rs')
0 files changed, 0 insertions, 0 deletions
