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 Rollup merge of #107916 - reez12g:issue-107040, r=Amanieu 2023-05-30 12:57:38 +02:00
array Re-format let-else per rustfmt update 2023-07-12 21:49:27 -04:00
ascii Add the basic ascii::Char type 2023-05-03 22:09:33 -07:00
async_iter use consistent terminology 2022-10-29 09:23:12 +02:00
cell replace version placeholders 2023-04-28 08:47:55 -07:00
char ascii::Char-ify the escaping code 2023-05-12 19:37:02 -07:00
cmp Merge two different equality specialization traits in core 2023-03-01 14:42:06 -08:00
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 Rollup merge of #109970 - danielhenrymantilla:add-poll-fn-pin-clarifications, r=thomcc 2023-06-19 19:26:25 +02:00
hash Swap out CURRENT_RUSTC_VERSION to 1.71.0 2023-05-30 07:54:29 -04:00
intrinsics Documentation 2023-05-15 12:08:16 +02:00
iter collect.rs: remove "Basic usage" text where not useful 2023-07-16 05:08:25 +02:00
macros Mention env! in option_env!'s docs 2023-06-14 18:29:08 +03:00
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 Auto merge of #112724 - scottmcm:simpler-unchecked-shifts, r=Mark-Simulacrum 2023-06-19 04:48:35 +00:00
ops Make rustc_on_unimplemented std-agnostic 2023-06-27 18:13:24 +08:00
panic Rollup merge of #108356 - gftea:master, r=workingjubilee 2023-05-15 17:12:44 +02:00
prelude Revert "Remove #[alloc_error_handler] from the compiler and library" 2023-04-25 00:08:35 +02:00
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 Auto merge of #96875 - SabrinaJewson:noop-waker, r=m-ou-se 2023-06-07 06:04:32 +00:00
unicode Apply changes to fix python linting errors 2023-06-16 20:56:01 -04:00
any.rs Flip cfg's for bootstrap bump 2023-07-12 21:38:55 -04:00
arch.rs move core::arch into separate file 2022-11-20 10:28:14 +01:00
ascii.rs ascii::Char-ify the escaping code 2023-05-12 19:37:02 -07:00
asserting.rs [RFC 2011] Library code 2022-05-22 07:18:32 -03:00
bool.rs core is now compilable 2023-04-16 07:20:26 +00:00
borrow.rs doc: replace wrong punctuation mark 2023-07-28 14:46:17 +02:00
cell.rs Same for BorrowRef 2023-06-18 01:14:45 -07:00
clone.rs core is now compilable 2023-04-16 07:20:26 +00:00
cmp.rs Add #[inline] to functions that are never called 2023-05-07 12:41:37 +01:00
default.rs Remove default_free_fn feature 2023-07-08 12:10:12 +09:00
error.md Small round of typo fixes 2022-11-04 20:06:18 -07:00
error.rs Bump to latest beta 2023-03-15 08:55:22 -04:00
escape.rs ascii::Char-ify the escaping code 2023-05-12 19:37:02 -07:00
hint.rs Rollup merge of #108416 - pat-nel87:Issue-107957-black_box_docs, r=jyn514 2023-04-26 01:55:49 -05:00
internal_macros.rs rm const traits in libcore 2023-04-16 06:49:27 +00:00
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 Shorten lifetime of even more panic temporaries 2023-05-15 03:47:37 -07:00
panicking.rs Launch a non-unwinding panic for misaligned pointer deref 2023-06-16 09:20:33 -04:00
pin.rs Document Pin memory layout 2023-05-18 01:30:12 -04:00
primitive.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
primitive_docs.rs Extend unused_must_use to cover block exprs 2023-06-15 17:59:13 +08:00
result.rs Rollup merge of #112655 - WaffleLapkin:must_use_map_or, r=workingjubilee 2023-07-30 14:25:08 +02:00
time.rs Use fmt::Alignment instead of fmt::rt::v1::Alignment. 2023-04-20 18:03:47 +02:00
tuple.rs Flip cfg's for bootstrap bump 2023-07-12 21:38:55 -04:00
unit.rs Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00