rust/library/core/src
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
..
alloc
array Re-format let-else per rustfmt update 2023-07-12 21:49:27 -04:00
ascii
async_iter
cell
char
cmp
convert Make rustc_on_unimplemented std-agnostic 2023-06-27 18:13:24 +08:00
ffi Rollup merge of #113252 - tgross35:const-cstr-from-ptr-tracking-issue, r=ChrisDenton 2023-07-22 11:48:53 +02:00
fmt docs: fmt::Debug*: Fix comments for finish method. 2023-07-26 19:02:26 +07:00
future
hash
intrinsics
iter collect.rs: remove "Basic usage" text where not useful 2023-07-16 05:08:25 +02:00
macros
mem Flip cfg's for bootstrap bump 2023-07-12 21:38:55 -04:00
net Link methods in From impls 2023-07-18 20:58:35 -04:00
num
ops Make rustc_on_unimplemented std-agnostic 2023-06-27 18:13:24 +08:00
panic
prelude
ptr Rollup merge of #102198 - lukas-code:nonnull_as_ref, r=Amanieu 2023-07-30 20:36:34 +02:00
slice Get !nonnull metadata consistently in slice iterators, without needing assumes 2023-07-20 11:33:49 -07:00
str Rollup merge of #113512 - vallentin:lines-doc, r=workingjubilee 2023-07-30 07:13:02 +00:00
sync Auto merge of #114034 - Amanieu:riscv-atomicbool, r=thomcc 2023-07-27 01:00:12 +00:00
task
unicode
any.rs Flip cfg's for bootstrap bump 2023-07-12 21:38:55 -04:00
arch.rs
ascii.rs
asserting.rs
bool.rs
borrow.rs doc: replace wrong punctuation mark 2023-07-28 14:46:17 +02:00
cell.rs
clone.rs
cmp.rs
default.rs Remove default_free_fn feature 2023-07-08 12:10:12 +09:00
error.md
error.rs
escape.rs
hint.rs
internal_macros.rs
intrinsics.rs Add #[inline] to core debug assertion helpers 2023-07-22 12:07:06 -04:00
lib.rs library: allow ambiguous_glob_reexports for core_arch 2023-07-29 00:19:59 +08:00
marker.rs Flip cfg's for bootstrap bump 2023-07-12 21:38:55 -04:00
option.rs Mark map_or as #[must_use] 2023-07-30 10:22:23 +00:00
panic.rs
panicking.rs
pin.rs
primitive_docs.rs
primitive.rs
result.rs Rollup merge of #112655 - WaffleLapkin:must_use_map_or, r=workingjubilee 2023-07-30 14:25:08 +02:00
time.rs
tuple.rs Flip cfg's for bootstrap bump 2023-07-12 21:38:55 -04:00
unit.rs