rust/library/core/src
Matthias Krüger 8ceb4e49ff
Rollup merge of #127433 - dtolnay:conststrlen, r=workingjubilee
Stabilize const_cstr_from_ptr (CStr::from_ptr, CStr::count_bytes)

Completed the pair of FCPs https://github.com/rust-lang/rust/issues/113219#issuecomment-2016939401 + https://github.com/rust-lang/rust/issues/114441#issuecomment-2016942566.

`CStr::from_ptr` is covered by just the first FCP on its own. `CStr::count_bytes` requires the approval of both FCPs. The second paragraph of the first link and the last paragraph of the second link explain the relationship between the two FCPs. As both have been approved, we can proceed with stabilizing `const` on both of these already-stable functions.
2024-07-12 14:37:58 +02:00
..
alloc alloc::Layout: explicitly document size invariant on the type level 2024-03-25 20:18:46 +01:00
array Replace MaybeUninit::uninit_array() with array repeat expression. 2024-06-24 10:23:50 -07:00
ascii implement Default for AsciiChar 2024-02-13 12:04:44 +01:00
async_iter Hide async_gen_internals from standard library documentation 2024-04-05 18:54:38 -07:00
cell Rename lazy_cell_consume to lazy_cell_into_inner 2024-07-11 03:16:45 -04:00
char Improve escape methods. 2024-05-09 17:04:30 +02:00
cmp Use generic NonZero everywhere in core. 2024-02-22 15:17:33 +01:00
convert Re-add From<f16> for f64 2024-05-04 22:56:35 +01:00
ffi Rollup merge of #127433 - dtolnay:conststrlen, r=workingjubilee 2024-07-12 14:37:58 +02:00
fmt Improve readability of some fmt code examples 2024-07-05 14:05:29 +02:00
future Add tracking issue to async_drop API 2024-06-17 17:20:13 +03:00
hash Optimize SipHash by reordering compress instructions 2024-07-01 22:36:40 +00:00
intrinsics Auto merge of #126171 - RalfJung:simd_bitmask_multibyte, r=workingjubilee 2024-07-05 01:58:22 +00:00
io Remove bound checks from BorrowedBuf and BorrowedCursor methods 2024-04-15 10:29:43 +02:00
iter Specialize TrustedLen for Iterator::unzip() 2024-07-07 06:58:52 +03:00
macros Rollup merge of #126096 - c410-f3r:tests-tests-tests, r=jhpratt 2024-06-06 14:46:25 -07:00
mem Describe Sized requirements for mem::offset_of 2024-07-05 01:55:01 -04:00
net Update ip_addr.rs 2024-06-30 14:54:05 -04:00
num core: Limit remaining f16 doctests to x86_64 linux 2024-07-10 23:21:57 +02:00
ops Remove feature(effects) from the standard library 2024-06-21 09:23:24 +00:00
panic Stabilize PanicInfo::message() and PanicMessage 2024-06-20 14:06:33 +03:00
prelude replace version placeholder 2024-06-11 16:52:02 +02:00
ptr also remove redundant requirements from offset() 2024-07-04 14:14:18 +02:00
range add new_range_api for RFC 3550 2024-07-05 16:33:58 -06:00
slice as_simd: fix comment to be in line with 507583a (#121201) 2024-07-06 13:59:20 +02:00
str add new_range_api for RFC 3550 2024-07-05 16:33:58 -06:00
sync Stabilize atomic_bool_fetch_not 2024-07-01 14:14:22 +02:00
task Remove feature(effects) from the standard library 2024-06-21 09:23:24 +00:00
unicode Add a lower bound check to unicode-table-generator output 2024-04-20 10:16:45 +02:00
any.rs Print TypeId as hex for debugging 2024-06-30 13:36:44 -04:00
arch.rs Rust is a proper name: rust → Rust 2024-03-07 07:49:22 +01:00
ascii.rs Improve escape methods. 2024-05-09 17:04:30 +02: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 Suggest borrowing on fn argument that is impl AsRef 2024-05-09 23:25:31 +00:00
cell.rs replace version placeholder 2024-06-11 16:52:02 +02:00
clone.rs chore: remove duplicate words 2024-07-02 11:25:31 +08:00
cmp.rs Remove feature(effects) from the standard library 2024-06-21 09:23:24 +00:00
default.rs Improve dead code analysis 2024-07-04 22:05:00 +08:00
error.md Mention core's PanicInfo in error.md. 2024-06-11 15:47:00 +02:00
error.rs impl FusedIterator and a size hint for the error sources iter 2024-07-04 23:55:52 -04:00
escape.rs Remove feature(effects) from the standard library 2024-06-21 09:23:24 +00:00
hint.rs chore: remove repeat words 2024-07-04 14:56:08 +08:00
internal_macros.rs Revert "Rollup merge of #125362 - joboet:tait_hack, r=Nilstrieb" 2024-06-12 08:47:49 +00:00
intrinsics.rs Rollup merge of #123588 - tgross35:stabilize-assert_unchecked, r=dtolnay 2024-07-03 03:03:13 -04:00
lib.miri.rs add 'x.py miri', and make it work for 'library/{core,alloc,std}' 2024-04-03 20:27:20 +02:00
lib.rs add new_range_api for RFC 3550 2024-07-05 16:33:58 -06:00
marker.rs Auto merge of #120639 - fee1-dead-contrib:new-effects-desugaring, r=oli-obk 2024-06-29 20:08:10 +00:00
option.rs Make Option::as_[mut_]slice const 2024-06-19 21:44:47 +01:00
panic.rs Stabilize PanicInfo::message() and PanicMessage 2024-06-20 14:06:33 +03:00
panicking.rs Rename std::panic::PanicInfo to PanicHookInfo. 2024-06-11 15:47:00 +02:00
pat.rs Add pattern types to parser 2024-04-08 11:57:17 +00:00
pin.rs Fix typo in docs for std::pin 2024-06-07 12:18:43 -07:00
primitive.rs
primitive_docs.rs Rollup merge of #125043 - RalfJung:ref-type-safety-invariant, r=scottmcm 2024-05-22 23:41:11 +02:00
range.rs add new_range_api for RFC 3550 2024-07-05 16:33:58 -06:00
result.rs Rollup merge of #124870 - Lokathor:update-result-docs, r=dtolnay 2024-05-27 13:10:33 +02:00
time.rs Stabilize duration_abs_diff 2024-06-29 21:03:12 +02:00
tuple.rs Rollup merge of #118307 - scottmcm:tuple-eq-simpler, r=joshtriplett 2024-02-11 08:25:41 +01:00
ub_checks.rs export assert_unsafe_precondition macro for std-internal use 2024-04-22 19:02:37 +02:00
unit.rs Import the 2021 prelude in the core crate 2024-03-25 13:12:06 -07:00