diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-04-07 00:51:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-07 00:51:26 +0200 |
| commit | 0b5a8ac11616c909664d421482248b49357d12dd (patch) | |
| tree | fc02a90e4c9b2b682e65ce0ccdacd44a6a9af438 /compiler/rustc_codegen_llvm/src | |
| parent | f51ce75af4e6e7e1e132e2dff1dfc959f9f358a2 (diff) | |
| parent | ff88a9a3326a97df3162e1439d27127bbec79b79 (diff) | |
| download | rust-0b5a8ac11616c909664d421482248b49357d12dd.tar.gz rust-0b5a8ac11616c909664d421482248b49357d12dd.zip | |
Rollup merge of #123522 - dtolnay:constatomicintoinner, r=Nilstrieb
Stabilize const Atomic*::into_inner
Partial stabilization for https://github.com/rust-lang/rust/issues/78729, for which the FCP has already completed.
The other `into_inner` functions in that tracking issue (`UnsafeCell`, `Cell`, `RefCell`) are blocked on https://github.com/rust-lang/rust/issues/73255 for now.
```console
error[E0493]: destructor of `UnsafeCell<T>` cannot be evaluated at compile-time
--> library/core/src/cell.rs:2076:29
|
2076 | pub const fn into_inner(self) -> T {
| ^^^^ the destructor for this type cannot be evaluated in constant functions
2077 | self.value
2078 | }
| - value is dropped here
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
