rust/library/core
Matthias Krüger e3ca397593
Rollup merge of #102198 - lukas-code:nonnull_as_ref, r=Amanieu
`const`-stablilize `NonNull::as_ref`

A bunch of pointer to reference methods have been made unstably const some time ago in #91823 under the feature gate `const_ptr_as_ref`.
Out of these, `NonNull::as_ref` can be implemented as a `const fn` in stable rust today, so i hereby propose to const stabilize this function only.

Tracking issue: #91822

``@rustbot`` label +T-libs-api -T-libs
2023-07-30 20:36:34 +02:00
..
benches fix 2023-07-23 09:58:31 +00:00
primitive_docs
src Rollup merge of #102198 - lukas-code:nonnull_as_ref, r=Amanieu 2023-07-30 20:36:34 +02:00
tests Auto merge of #112699 - bluebear94:mf/more-is-sorted-tests, r=cuviper 2023-07-21 23:25:04 +00:00
Cargo.toml